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
- IISUnsafeMethods.cs
- ResourcesChangeInfo.cs
- GraphicsState.cs
- ControlParameter.cs
- ConditionCollection.cs
- FieldToken.cs
- XmlTextReaderImplHelpers.cs
- DataGridViewCellConverter.cs
- SendKeys.cs
- XmlDocument.cs
- QueueProcessor.cs
- QueryOpeningEnumerator.cs
- EllipticalNodeOperations.cs
- AnimationException.cs
- AsnEncodedData.cs
- CopyNodeSetAction.cs
- ReadOnlyPropertyMetadata.cs
- ItemCheckEvent.cs
- InternalPolicyElement.cs
- InvalidProgramException.cs
- DataGridViewButtonColumn.cs
- DataObjectAttribute.cs
- BrushConverter.cs
- ConditionalDesigner.cs
- ConfigurationManagerHelper.cs
- EncryptedType.cs
- EllipseGeometry.cs
- TabControlEvent.cs
- LineGeometry.cs
- AppDomainEvidenceFactory.cs
- RequestStatusBarUpdateEventArgs.cs
- HandlerFactoryWrapper.cs
- BamlLocalizationDictionary.cs
- ConversionContext.cs
- ItemContainerGenerator.cs
- IndexerNameAttribute.cs
- XmlMemberMapping.cs
- ContentValidator.cs
- _ConnectStream.cs
- XmlSignificantWhitespace.cs
- MediaTimeline.cs
- TextContainerChangeEventArgs.cs
- PixelShader.cs
- DataGridViewDesigner.cs
- SessionStateContainer.cs
- DecimalConstantAttribute.cs
- SchemaLookupTable.cs
- AdornerLayer.cs
- WithStatement.cs
- PropertyManager.cs
- RequestQueue.cs
- CommandDevice.cs
- PenCursorManager.cs
- Wizard.cs
- Token.cs
- CharUnicodeInfo.cs
- SingleKeyFrameCollection.cs
- HwndKeyboardInputProvider.cs
- ParseElement.cs
- StylusEditingBehavior.cs
- DelegatingTypeDescriptionProvider.cs
- SerTrace.cs
- WebMethodAttribute.cs
- ImplicitInputBrush.cs
- DeferrableContent.cs
- ImageFormatConverter.cs
- InputLanguageEventArgs.cs
- DoubleAnimationUsingPath.cs
- ElementAction.cs
- RtfControlWordInfo.cs
- Stacktrace.cs
- EllipseGeometry.cs
- RequestSecurityTokenForGetBrowserToken.cs
- Base64Encoder.cs
- PropertyInformation.cs
- SecurityTokenAuthenticator.cs
- DomainLiteralReader.cs
- CharUnicodeInfo.cs
- DataGridTable.cs
- ButtonPopupAdapter.cs
- XmlSchemaAppInfo.cs
- XmlSchemaInclude.cs
- PrivilegedConfigurationManager.cs
- Identifier.cs
- HandleCollector.cs
- HttpsChannelFactory.cs
- DbInsertCommandTree.cs
- StringSource.cs
- IisHelper.cs
- Int16Converter.cs
- TranslateTransform.cs
- SrgsGrammarCompiler.cs
- SchemaComplexType.cs
- Activity.cs
- Vector3DCollectionValueSerializer.cs
- UrlAuthFailedErrorFormatter.cs
- Win32Exception.cs
- COM2ExtendedBrowsingHandler.cs
- StateDesigner.Layouts.cs
- TableAutomationPeer.cs