Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / PolicyConversionContext.cs / 1 / PolicyConversionContext.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Description { using System.Xml; using System.ServiceModel.Channels; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; public abstract class PolicyConversionContext { readonly ContractDescription contract; protected PolicyConversionContext(ServiceEndpoint endpoint) { if (endpoint == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("endpoint"); this.contract = endpoint.Contract; } public abstract BindingElementCollection BindingElements { get; } public ContractDescription Contract { get { return this.contract; } } public abstract PolicyAssertionCollection GetBindingAssertions(); public abstract PolicyAssertionCollection GetOperationBindingAssertions(OperationDescription operation); public abstract PolicyAssertionCollection GetMessageBindingAssertions(MessageDescription message); public abstract PolicyAssertionCollection GetFaultBindingAssertions(FaultDescription fault); internal static XmlElement FindAssertion(ICollectionassertions, string localName, string namespaceUri, bool remove) { XmlElement result = null; foreach (XmlElement assertion in assertions) { if ((assertion.LocalName == localName) && ((namespaceUri == null) || (assertion.NamespaceURI == namespaceUri))) { result = assertion; if(remove) assertions.Remove(result); break; } } return result; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WinFormsUtils.cs
- RemoteTokenFactory.cs
- ComponentDispatcherThread.cs
- UseLicense.cs
- FamilyMap.cs
- DbgCompiler.cs
- BitmapData.cs
- OutputScopeManager.cs
- TemplateManager.cs
- CodeCommentStatement.cs
- MsmqBindingBase.cs
- NumberFormatter.cs
- ChannelRequirements.cs
- ArcSegment.cs
- WsdlInspector.cs
- LinqDataSourceEditData.cs
- SecurityKeyUsage.cs
- PaintEvent.cs
- SharedStatics.cs
- ViewBox.cs
- _NestedMultipleAsyncResult.cs
- ImageListStreamer.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ImageMapEventArgs.cs
- Expression.cs
- ImageListUtils.cs
- TextServicesCompartmentEventSink.cs
- ConstraintConverter.cs
- ExpressionQuoter.cs
- HtmlControlPersistable.cs
- DbProviderFactory.cs
- HtmlValidatorAdapter.cs
- DataView.cs
- SqlUtil.cs
- Compress.cs
- XPathParser.cs
- CheckBoxRenderer.cs
- StrongNameKeyPair.cs
- _LoggingObject.cs
- autovalidator.cs
- SqlDataSourceStatusEventArgs.cs
- RandomNumberGenerator.cs
- FieldTemplateUserControl.cs
- XmlSchemaAnyAttribute.cs
- TraceSwitch.cs
- WebService.cs
- PenLineJoinValidation.cs
- RawMouseInputReport.cs
- PageStatePersister.cs
- Marshal.cs
- ToolStripSplitStackLayout.cs
- AuthenticationSchemesHelper.cs
- StrokeNodeData.cs
- TracedNativeMethods.cs
- PropertyGrid.cs
- ByteStack.cs
- TextBoxBase.cs
- SafeThemeHandle.cs
- PageTheme.cs
- InheritanceContextHelper.cs
- PartialTrustVisibleAssembly.cs
- HttpProfileGroupBase.cs
- SolidColorBrush.cs
- UrlPropertyAttribute.cs
- MessageQueuePermissionAttribute.cs
- CheckBox.cs
- MsmqSecureHashAlgorithm.cs
- RegexMatch.cs
- UrlMappingsModule.cs
- JpegBitmapEncoder.cs
- TextServicesManager.cs
- entitydatasourceentitysetnameconverter.cs
- IPeerNeighbor.cs
- XmlSchemaAnnotated.cs
- ProfessionalColorTable.cs
- CharacterBufferReference.cs
- EdmRelationshipRoleAttribute.cs
- ResumeStoryboard.cs
- SymbolMethod.cs
- ExceptionUtility.cs
- IdentityManager.cs
- GridSplitterAutomationPeer.cs
- Panel.cs
- AndCondition.cs
- UseManagedPresentationBindingElementImporter.cs
- SynchronizationLockException.cs
- SmiEventSink.cs
- HorizontalAlignConverter.cs
- HttpCookiesSection.cs
- ToolboxComponentsCreatingEventArgs.cs
- ReaderOutput.cs
- SortDescriptionCollection.cs
- SoapServerMethod.cs
- Pair.cs
- IriParsingElement.cs
- InlinedAggregationOperatorEnumerator.cs
- ChtmlPageAdapter.cs
- BitVector32.cs
- ScriptBehaviorDescriptor.cs
- XmlCDATASection.cs