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
- QilChoice.cs
- UTF32Encoding.cs
- DesignerEventService.cs
- ConnectionPointCookie.cs
- StopStoryboard.cs
- UserControl.cs
- DataTableClearEvent.cs
- ContentValidator.cs
- Substitution.cs
- SoapMessage.cs
- BrowserCapabilitiesFactoryBase.cs
- BindToObject.cs
- FileStream.cs
- CodeDomConfigurationHandler.cs
- FlowDocumentReaderAutomationPeer.cs
- DbCommandDefinition.cs
- XmlUtf8RawTextWriter.cs
- WorkflowControlClient.cs
- Listbox.cs
- UiaCoreApi.cs
- DatePickerAutomationPeer.cs
- ConfigViewGenerator.cs
- Compiler.cs
- DocumentOrderComparer.cs
- RoleBoolean.cs
- ParamArrayAttribute.cs
- OverflowException.cs
- NetTcpBinding.cs
- WebResourceUtil.cs
- DeploymentSection.cs
- Image.cs
- XmlSerializationReader.cs
- BinHexDecoder.cs
- ObjectDataSourceChooseTypePanel.cs
- TypeInfo.cs
- FlowchartSizeFeature.cs
- BaseTemplateParser.cs
- ImageMapEventArgs.cs
- BooleanConverter.cs
- Constants.cs
- EncoderExceptionFallback.cs
- loginstatus.cs
- CmsUtils.cs
- UnaryOperationBinder.cs
- KeyedCollection.cs
- MetadataPropertyAttribute.cs
- FactoryRecord.cs
- DbParameterHelper.cs
- XmlSchemaInclude.cs
- FillErrorEventArgs.cs
- XPathParser.cs
- CodeDirectoryCompiler.cs
- SerializationEventsCache.cs
- XsltSettings.cs
- TreeNodeCollection.cs
- ResXBuildProvider.cs
- SelectionPatternIdentifiers.cs
- ConvertEvent.cs
- PropertyIdentifier.cs
- FileLoadException.cs
- HttpListener.cs
- AutomationPatternInfo.cs
- HostingEnvironmentSection.cs
- SubtreeProcessor.cs
- AssemblyEvidenceFactory.cs
- BindingCompleteEventArgs.cs
- PropertyGridEditorPart.cs
- Clause.cs
- PropertyDescriptorGridEntry.cs
- WindowsGraphicsWrapper.cs
- SqlServer2KCompatibilityCheck.cs
- DtrList.cs
- ReversePositionQuery.cs
- BuildResultCache.cs
- ConfigurationValidatorBase.cs
- GetPageCompletedEventArgs.cs
- WebControlAdapter.cs
- ExtentKey.cs
- DetailsViewDeletedEventArgs.cs
- DataGridViewColumnConverter.cs
- StateMachine.cs
- KoreanCalendar.cs
- ToolStripKeyboardHandlingService.cs
- BuildDependencySet.cs
- SerializationInfoEnumerator.cs
- Funcletizer.cs
- TabItemWrapperAutomationPeer.cs
- FontUnit.cs
- Nullable.cs
- WindowsGraphics.cs
- SizeAnimation.cs
- MtomMessageEncodingElement.cs
- xmlsaver.cs
- PriorityRange.cs
- BindingEntityInfo.cs
- HwndMouseInputProvider.cs
- XmlObjectSerializerContext.cs
- ClientUriBehavior.cs
- TemplateXamlParser.cs
- SqlComparer.cs