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
- PersistenceTypeAttribute.cs
- ValidationErrorCollection.cs
- KeyGestureConverter.cs
- base64Transforms.cs
- ComponentCommands.cs
- NetworkInformationPermission.cs
- DropDownButton.cs
- ExceptionHandlersDesigner.cs
- XPathMultyIterator.cs
- BaseComponentEditor.cs
- base64Transforms.cs
- ControlCodeDomSerializer.cs
- SQLByte.cs
- WmlValidatorAdapter.cs
- PageThemeParser.cs
- AbstractDataSvcMapFileLoader.cs
- IISMapPath.cs
- __Filters.cs
- SharedStream.cs
- ThemeDictionaryExtension.cs
- ComponentDispatcher.cs
- WarningException.cs
- XmlDigitalSignatureProcessor.cs
- CodeDirectionExpression.cs
- TextContainerChangeEventArgs.cs
- EntityCommandCompilationException.cs
- SamlSerializer.cs
- MenuCommands.cs
- XmlSchemaAny.cs
- HtmlForm.cs
- DataPager.cs
- ContextMenu.cs
- ControlAdapter.cs
- TextDecoration.cs
- OperationGenerator.cs
- NumericUpDownAcceleration.cs
- _NtlmClient.cs
- DirectionalLight.cs
- GeometryHitTestResult.cs
- RouteTable.cs
- RegexRunner.cs
- UIElementPropertyUndoUnit.cs
- ProviderUtil.cs
- CommandPlan.cs
- SmiEventSink_Default.cs
- DictionaryTraceRecord.cs
- FormClosingEvent.cs
- DependencySource.cs
- KnownTypeHelper.cs
- XmlByteStreamWriter.cs
- dataSvcMapFileLoader.cs
- SchemaImporterExtensionsSection.cs
- WebPartCatalogCloseVerb.cs
- DataStorage.cs
- Expander.cs
- CompilerHelpers.cs
- OleDbEnumerator.cs
- WebCategoryAttribute.cs
- ControlUtil.cs
- FileSystemWatcher.cs
- GroupLabel.cs
- ReflectionTypeLoadException.cs
- TableCellCollection.cs
- TitleStyle.cs
- XmlQualifiedName.cs
- Transactions.cs
- TouchFrameEventArgs.cs
- ScrollContentPresenter.cs
- DataExpression.cs
- HostExecutionContextManager.cs
- MethodAccessException.cs
- HttpClientCertificate.cs
- IApplicationTrustManager.cs
- CookieProtection.cs
- XmlAnyElementAttributes.cs
- WeakReferenceKey.cs
- LineServices.cs
- DataServiceRequestException.cs
- EventLogEntry.cs
- CFStream.cs
- FileUtil.cs
- DropShadowEffect.cs
- NameNode.cs
- Converter.cs
- EventSetter.cs
- StringConverter.cs
- EmptyEnumerator.cs
- DropShadowBitmapEffect.cs
- TriggerAction.cs
- Triangle.cs
- Utils.cs
- MenuEventArgs.cs
- _UncName.cs
- EntityStoreSchemaGenerator.cs
- InternalPolicyElement.cs
- PathStreamGeometryContext.cs
- JpegBitmapEncoder.cs
- TabControlEvent.cs
- SByte.cs
- MessagePropertyDescription.cs