Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / MustUnderstandBehavior.cs / 1 / MustUnderstandBehavior.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Description { using System; using System.ServiceModel.Channels; using System.ServiceModel.Dispatcher; using System.Collections.Generic; public class MustUnderstandBehavior : IEndpointBehavior { bool validateMustUnderstand; public MustUnderstandBehavior(bool validate) { this.validateMustUnderstand = validate; } public bool ValidateMustUnderstand { get { return this.validateMustUnderstand; } set { this.validateMustUnderstand = value;} } void IEndpointBehavior.Validate(ServiceEndpoint serviceEndpoint) { } void IEndpointBehavior.AddBindingParameters(ServiceEndpoint serviceEndpoint, BindingParameterCollection bindingParameters) { } void IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint serviceEndpoint, EndpointDispatcher endpointDispatcher) { if (endpointDispatcher == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("endpointDispatcher")); endpointDispatcher.DispatchRuntime.ValidateMustUnderstand = this.ValidateMustUnderstand; } void IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint serviceEndpoint, ClientRuntime behavior) { if (behavior == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("behavior")); behavior.ValidateMustUnderstand = this.ValidateMustUnderstand; } } } // 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
- X509SecurityTokenProvider.cs
- PropertyEntry.cs
- WebHttpSecurityElement.cs
- Fonts.cs
- BitmapFrameEncode.cs
- XamlBrushSerializer.cs
- ObjectFullSpanRewriter.cs
- GridViewRow.cs
- CannotUnloadAppDomainException.cs
- SqlBuffer.cs
- XmlSchemaAnnotation.cs
- AsymmetricAlgorithm.cs
- TableSectionStyle.cs
- TreeView.cs
- TdsParserHelperClasses.cs
- EntityDataSourceChangedEventArgs.cs
- XPathException.cs
- Geometry3D.cs
- ListViewInsertedEventArgs.cs
- FixUp.cs
- SwitchElementsCollection.cs
- WebPartDescriptionCollection.cs
- WebPartEditorApplyVerb.cs
- SingleConverter.cs
- bidPrivateBase.cs
- EventManager.cs
- DataBoundLiteralControl.cs
- InputScopeConverter.cs
- FacetDescriptionElement.cs
- HtmlImage.cs
- BooleanAnimationUsingKeyFrames.cs
- ResolvePPIDRequest.cs
- CodeTypeDeclaration.cs
- ListCommandEventArgs.cs
- TreeView.cs
- TeredoHelper.cs
- SafePEFileHandle.cs
- DataShape.cs
- OletxEnlistment.cs
- RuleSettingsCollection.cs
- PerformanceCounter.cs
- DbMetaDataFactory.cs
- DiagnosticTrace.cs
- RealProxy.cs
- ObjectTag.cs
- ListViewGroupItemCollection.cs
- Drawing.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- XmlDictionaryReader.cs
- wmiutil.cs
- DeploymentSection.cs
- DocumentStatusResources.cs
- X509CertificateStore.cs
- InlineUIContainer.cs
- InterleavedZipPartStream.cs
- StsCommunicationException.cs
- BaseValidator.cs
- ToolStripComboBox.cs
- DataColumn.cs
- FilteredXmlReader.cs
- StructuredProperty.cs
- precedingsibling.cs
- StringExpressionSet.cs
- CopyAttributesAction.cs
- DirtyTextRange.cs
- FileDialogCustomPlace.cs
- MemoryMappedViewStream.cs
- WebConvert.cs
- ReferencedAssembly.cs
- UICuesEvent.cs
- Image.cs
- ListViewGroupConverter.cs
- WindowsSolidBrush.cs
- Graphics.cs
- UnsafeNetInfoNativeMethods.cs
- MimeXmlReflector.cs
- ThreadPool.cs
- ConnectorEditor.cs
- WebPartConnectVerb.cs
- Models.cs
- Translator.cs
- CopyAttributesAction.cs
- TargetControlTypeCache.cs
- RequestCacheEntry.cs
- ToolStripDesignerUtils.cs
- SHA384Managed.cs
- DecodeHelper.cs
- DesignerAttribute.cs
- SocketElement.cs
- ActivityMarkupSerializationProvider.cs
- GetCryptoTransformRequest.cs
- WindowsGraphics2.cs
- Html32TextWriter.cs
- RecognizerBase.cs
- DynamicILGenerator.cs
- CodeSubDirectoriesCollection.cs
- CurrentChangedEventManager.cs
- DispatcherProcessingDisabled.cs
- BuildProvider.cs
- TabControl.cs