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
- ApplicationFileCodeDomTreeGenerator.cs
- CompilerHelpers.cs
- ViewEventArgs.cs
- DataRecordInternal.cs
- WebConvert.cs
- SplitterPanel.cs
- AuthenticationConfig.cs
- Int32EqualityComparer.cs
- TripleDESCryptoServiceProvider.cs
- SortFieldComparer.cs
- ResizeGrip.cs
- OleDbParameterCollection.cs
- FrameSecurityDescriptor.cs
- FilterQuery.cs
- CaseInsensitiveHashCodeProvider.cs
- DecimalAnimationBase.cs
- KeyboardDevice.cs
- PageDeviceFont.cs
- SourceFileBuildProvider.cs
- DialogResultConverter.cs
- TableLayoutColumnStyleCollection.cs
- WizardSideBarListControlItem.cs
- Zone.cs
- ParentQuery.cs
- BamlRecordWriter.cs
- SpotLight.cs
- WebColorConverter.cs
- StorageComplexPropertyMapping.cs
- CompilerInfo.cs
- StreamAsIStream.cs
- ExpressionBuilderCollection.cs
- ContentTypeSettingClientMessageFormatter.cs
- HttpPostProtocolImporter.cs
- CompModHelpers.cs
- securitymgrsite.cs
- DataViewManager.cs
- CodeDirectiveCollection.cs
- LicenseContext.cs
- SimpleExpression.cs
- PassportIdentity.cs
- SelectedDatesCollection.cs
- SiteMapProvider.cs
- TreeWalker.cs
- PerformanceCounter.cs
- XmlAttributeAttribute.cs
- DataSourceSelectArguments.cs
- XmlSortKey.cs
- EnumValidator.cs
- FrameSecurityDescriptor.cs
- ThicknessConverter.cs
- XmlTypeMapping.cs
- Token.cs
- KeySplineConverter.cs
- TraceProvider.cs
- VisualProxy.cs
- HtmlTernaryTree.cs
- input.cs
- XmlAnyAttributeAttribute.cs
- WorkflowApplicationAbortedException.cs
- ParsedAttributeCollection.cs
- Pipe.cs
- TextTreeTextElementNode.cs
- ViewCellSlot.cs
- MappedMetaModel.cs
- SafeBitVector32.cs
- FlowDocumentScrollViewer.cs
- Transform.cs
- VirtualPathExtension.cs
- ListCollectionView.cs
- WindowsEditBox.cs
- ChtmlTextWriter.cs
- IpcChannelHelper.cs
- WorkflowOperationBehavior.cs
- LabelLiteral.cs
- DBPropSet.cs
- RegexNode.cs
- DesignDataSource.cs
- StreamInfo.cs
- NetSectionGroup.cs
- ServiceContractListItem.cs
- ScrollItemPattern.cs
- DataGridCaption.cs
- SerTrace.cs
- OutputCache.cs
- AssociatedControlConverter.cs
- MediaTimeline.cs
- NamedObject.cs
- InProcStateClientManager.cs
- Stackframe.cs
- PagesSection.cs
- Executor.cs
- LongAverageAggregationOperator.cs
- TextEditorSelection.cs
- ColumnResult.cs
- ValidatingReaderNodeData.cs
- HttpResponseBase.cs
- ItemList.cs
- EntityCommand.cs
- SemaphoreSecurity.cs
- WindowsIdentity.cs