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
- MimeMultiPart.cs
- HttpCacheVaryByContentEncodings.cs
- DummyDataSource.cs
- DetailsViewUpdatedEventArgs.cs
- BinHexEncoder.cs
- DispatcherExceptionEventArgs.cs
- unsafeIndexingFilterStream.cs
- DecoderNLS.cs
- ImageIndexConverter.cs
- CodeIndexerExpression.cs
- WebPartTransformer.cs
- ConfigXmlWhitespace.cs
- EncodingTable.cs
- TrustSection.cs
- ModelVisual3D.cs
- SiteMapNode.cs
- CqlParser.cs
- OutputCacheSection.cs
- FixedSOMGroup.cs
- OdbcConnectionString.cs
- ADRoleFactory.cs
- _LocalDataStore.cs
- StdValidatorsAndConverters.cs
- ParameterInfo.cs
- ProvidePropertyAttribute.cs
- DataBinding.cs
- XmlSchemaInclude.cs
- DefinitionProperties.cs
- GridItemPattern.cs
- TableNameAttribute.cs
- XmlText.cs
- ZipIOExtraFieldZip64Element.cs
- HostedHttpContext.cs
- HttpStreamMessageEncoderFactory.cs
- Button.cs
- MenuItemStyleCollection.cs
- AuthorizationRule.cs
- AsyncStreamReader.cs
- PageVisual.cs
- X509ScopedServiceCertificateElement.cs
- ClientTarget.cs
- ShaperBuffers.cs
- ArrayElementGridEntry.cs
- PropertyGroupDescription.cs
- CodeCompiler.cs
- XPathParser.cs
- SafeThreadHandle.cs
- ComponentResourceManager.cs
- InternalBase.cs
- AccessDataSource.cs
- CodeCatchClause.cs
- SqlNotificationRequest.cs
- OutputWindow.cs
- DataGridTableCollection.cs
- RepeatButtonAutomationPeer.cs
- RadioButtonRenderer.cs
- WebFaultClientMessageInspector.cs
- DataGridColumnCollectionEditor.cs
- DBCSCodePageEncoding.cs
- X509ScopedServiceCertificateElement.cs
- ListViewAutomationPeer.cs
- LinearGradientBrush.cs
- DeliveryStrategy.cs
- EventListenerClientSide.cs
- DataGridViewTopLeftHeaderCell.cs
- LinkButton.cs
- TileBrush.cs
- DivideByZeroException.cs
- WindowsStatic.cs
- BrowserCapabilitiesCodeGenerator.cs
- MatrixKeyFrameCollection.cs
- EntityClassGenerator.cs
- NamedElement.cs
- DoubleKeyFrameCollection.cs
- _AcceptOverlappedAsyncResult.cs
- BinaryFormatterWriter.cs
- RoleBoolean.cs
- ThreadStaticAttribute.cs
- EntityContainerEmitter.cs
- SelectionProviderWrapper.cs
- XmlDocumentSerializer.cs
- XmlEncApr2001.cs
- httpserverutility.cs
- EncoderExceptionFallback.cs
- PrimitiveXmlSerializers.cs
- CompressStream.cs
- StrokeCollectionDefaultValueFactory.cs
- EmptyControlCollection.cs
- AppearanceEditorPart.cs
- Int32Converter.cs
- FileUpload.cs
- DefaultEventAttribute.cs
- MouseGestureValueSerializer.cs
- UidPropertyAttribute.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- SqlMetaData.cs
- TextBox.cs
- WindowsFormsSynchronizationContext.cs
- DelimitedListTraceListener.cs
- filewebrequest.cs