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
- ZipIOCentralDirectoryDigitalSignature.cs
- SetterBase.cs
- HandleRef.cs
- ProtectedConfiguration.cs
- IdentityNotMappedException.cs
- DirectionalLight.cs
- DispatchChannelSink.cs
- PropertyValueChangedEvent.cs
- SimpleModelProvider.cs
- PostBackOptions.cs
- EditorPartChrome.cs
- CultureTableRecord.cs
- PermissionSetTriple.cs
- XmlSchemaSearchPattern.cs
- MetricEntry.cs
- CodeDelegateCreateExpression.cs
- RuntimeArgument.cs
- AutomationIdentifierGuids.cs
- PtsCache.cs
- ToolTipService.cs
- SettingsBase.cs
- UpdateCompiler.cs
- RelatedCurrencyManager.cs
- RightsManagementEncryptedStream.cs
- InfocardInteractiveChannelInitializer.cs
- RootBrowserWindow.cs
- InvalidOleVariantTypeException.cs
- ExtenderProvidedPropertyAttribute.cs
- CheckBoxStandardAdapter.cs
- CodeArrayIndexerExpression.cs
- TextBoxAutoCompleteSourceConverter.cs
- ComponentEvent.cs
- EnglishPluralizationService.cs
- XmlCharCheckingWriter.cs
- SortKey.cs
- RegexTypeEditor.cs
- AsyncDataRequest.cs
- ImportOptions.cs
- TableLayoutPanelCellPosition.cs
- ObjectDataSource.cs
- Part.cs
- CommandBindingCollection.cs
- OdbcConnection.cs
- AtomParser.cs
- ObjectSet.cs
- XmlTypeAttribute.cs
- SqlClientMetaDataCollectionNames.cs
- FlowDocument.cs
- LinkedResourceCollection.cs
- ProfilePropertySettingsCollection.cs
- ListManagerBindingsCollection.cs
- WindowsStatusBar.cs
- SystemIPInterfaceProperties.cs
- WithParamAction.cs
- ExceptionHandlerDesigner.cs
- HtmlWindowCollection.cs
- PackWebResponse.cs
- ResXResourceReader.cs
- xamlnodes.cs
- SspiNegotiationTokenProviderState.cs
- BindUriHelper.cs
- BuildProvidersCompiler.cs
- GetBrowserTokenRequest.cs
- ImageField.cs
- EmptyStringExpandableObjectConverter.cs
- DBCSCodePageEncoding.cs
- FunctionNode.cs
- PeerToPeerException.cs
- Perspective.cs
- DataConnectionHelper.cs
- CompletionProxy.cs
- ReaderOutput.cs
- webeventbuffer.cs
- Control.cs
- DES.cs
- PaginationProgressEventArgs.cs
- ProviderUtil.cs
- MembershipSection.cs
- DelegatedStream.cs
- TextBoxBaseDesigner.cs
- FrameSecurityDescriptor.cs
- StateMachineWorkflowInstance.cs
- FullTextState.cs
- MimePart.cs
- MergeFailedEvent.cs
- _FtpDataStream.cs
- TemplateContainer.cs
- OracleConnectionStringBuilder.cs
- AttributeCollection.cs
- VisualStyleTypesAndProperties.cs
- SchemaNamespaceManager.cs
- TextEditorLists.cs
- ListBoxItemAutomationPeer.cs
- UITypeEditor.cs
- DefaultAsyncDataDispatcher.cs
- HttpConfigurationSystem.cs
- Point.cs
- PropertyKey.cs
- NamespaceEmitter.cs
- PaginationProgressEventArgs.cs