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
- ExpressionBinding.cs
- ToolboxComponentsCreatedEventArgs.cs
- HandlerFactoryCache.cs
- EntityRecordInfo.cs
- FieldToken.cs
- CategoryNameCollection.cs
- TableItemStyle.cs
- ResourceBinder.cs
- Matrix3DConverter.cs
- ObjectStorage.cs
- MessageQueue.cs
- WrapperEqualityComparer.cs
- XmlSchemaDocumentation.cs
- LinkButton.cs
- TransportOutputChannel.cs
- DocumentSchemaValidator.cs
- XmlAttributeProperties.cs
- WorkflowInstanceProxy.cs
- InstancePersistenceContext.cs
- ChangePassword.cs
- XmlSchemaSimpleTypeRestriction.cs
- PropertyKey.cs
- altserialization.cs
- DNS.cs
- HttpCachePolicyWrapper.cs
- TextRangeSerialization.cs
- Delegate.cs
- ProgressPage.cs
- SegmentInfo.cs
- GlyphTypeface.cs
- HostingEnvironmentWrapper.cs
- TreeChangeInfo.cs
- EdmProperty.cs
- AnimationClock.cs
- Stackframe.cs
- ConfigViewGenerator.cs
- SqlClientMetaDataCollectionNames.cs
- DependencyObjectProvider.cs
- Substitution.cs
- XamlClipboardData.cs
- ScrollItemPattern.cs
- DefaultBindingPropertyAttribute.cs
- MemberMaps.cs
- Win32.cs
- BitmapDownload.cs
- ExecutionContext.cs
- WinEventTracker.cs
- RelationshipManager.cs
- DispatcherEventArgs.cs
- XsltLoader.cs
- Native.cs
- SymbolUsageManager.cs
- ExpressionNode.cs
- ErrorWrapper.cs
- NonVisualControlAttribute.cs
- DispatcherEventArgs.cs
- DesignTimeVisibleAttribute.cs
- MasterPageParser.cs
- DocumentSequence.cs
- WebEventCodes.cs
- ObjectContextServiceProvider.cs
- RenderDataDrawingContext.cs
- SqlDependencyUtils.cs
- RsaKeyIdentifierClause.cs
- AnnotationResource.cs
- FixedPageAutomationPeer.cs
- SystemWebCachingSectionGroup.cs
- xsdvalidator.cs
- PassportIdentity.cs
- InputScope.cs
- DataGridTablesFactory.cs
- ContextMenuStripGroupCollection.cs
- FormViewDeleteEventArgs.cs
- PropertyChange.cs
- ModuleConfigurationInfo.cs
- MetadataArtifactLoaderCompositeFile.cs
- PartialToken.cs
- HostUtils.cs
- DocumentViewerAutomationPeer.cs
- OverflowException.cs
- CacheDependency.cs
- SocketInformation.cs
- SmiEventSink.cs
- UriScheme.cs
- WebDisplayNameAttribute.cs
- InvalidProgramException.cs
- AlternateView.cs
- XmlWellformedWriter.cs
- clipboard.cs
- DependentList.cs
- TreeViewHitTestInfo.cs
- XpsFilter.cs
- CultureInfoConverter.cs
- CombinedGeometry.cs
- HttpPostProtocolImporter.cs
- DataContractSerializerMessageContractImporter.cs
- Internal.cs
- ParserOptions.cs
- DelayLoadType.cs
- WindowsFormsLinkLabel.cs