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
- ToolTipAutomationPeer.cs
- SHA512Managed.cs
- ImmutablePropertyDescriptorGridEntry.cs
- EditorZone.cs
- PingOptions.cs
- IdnMapping.cs
- BoundColumn.cs
- WriteableBitmap.cs
- ServerIdentity.cs
- RepeatButtonAutomationPeer.cs
- DynamicActivityTypeDescriptor.cs
- SQLString.cs
- AuthorizationRule.cs
- MobileControlsSectionHandler.cs
- BitmapEffectInputConnector.cs
- SimpleWebHandlerParser.cs
- httpserverutility.cs
- CodeCastExpression.cs
- CheckBoxDesigner.cs
- XPathCompileException.cs
- DataSet.cs
- EastAsianLunisolarCalendar.cs
- FilterException.cs
- TrustLevel.cs
- ConnectionString.cs
- IDataContractSurrogate.cs
- SqlNodeAnnotation.cs
- ConnectionConsumerAttribute.cs
- EntityChangedParams.cs
- InternalResources.cs
- SqlNotificationRequest.cs
- NullableDecimalMinMaxAggregationOperator.cs
- DataColumnMapping.cs
- DataMisalignedException.cs
- UiaCoreProviderApi.cs
- HashRepartitionEnumerator.cs
- TemplateXamlParser.cs
- HMAC.cs
- XmlAnyAttributeAttribute.cs
- HtmlTernaryTree.cs
- PackWebRequest.cs
- DateTimeValueSerializer.cs
- OleDbException.cs
- XmlSchemaAttributeGroup.cs
- ColumnClickEvent.cs
- IPEndPointCollection.cs
- _NegoStream.cs
- MetadataArtifactLoaderResource.cs
- FrameworkReadOnlyPropertyMetadata.cs
- SortDescriptionCollection.cs
- AsyncOperation.cs
- DropShadowEffect.cs
- Parser.cs
- ZipIOCentralDirectoryFileHeader.cs
- DataGridViewLayoutData.cs
- TypeInfo.cs
- BuildProvider.cs
- TextEndOfParagraph.cs
- JsonCollectionDataContract.cs
- MultiSelector.cs
- GestureRecognitionResult.cs
- FixedDocument.cs
- StringAttributeCollection.cs
- EdmRelationshipRoleAttribute.cs
- TimeSpanSecondsConverter.cs
- HtmlWindow.cs
- EntityViewContainer.cs
- input.cs
- _ScatterGatherBuffers.cs
- RuntimeHandles.cs
- RemoteHelper.cs
- FillRuleValidation.cs
- DeferredReference.cs
- InvokePattern.cs
- LocatorManager.cs
- HyperLinkStyle.cs
- FormsAuthenticationConfiguration.cs
- EditorPart.cs
- NetMsmqBindingElement.cs
- DataControlReferenceCollection.cs
- EventProviderTraceListener.cs
- sortedlist.cs
- CustomWebEventKey.cs
- ReferentialConstraint.cs
- NamedPipeConnectionPoolSettingsElement.cs
- RelationalExpressions.cs
- HostedHttpContext.cs
- MemberHolder.cs
- StateRuntime.cs
- SqlDependencyUtils.cs
- StylusTip.cs
- BinaryUtilClasses.cs
- DataGridHeaderBorder.cs
- ApplicationInterop.cs
- EntityClientCacheKey.cs
- XmlSchemaDatatype.cs
- AppDomain.cs
- DependsOnAttribute.cs
- CultureData.cs
- InputMethod.cs