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
- OperationAbortedException.cs
- KeySpline.cs
- DesignerActionUIService.cs
- TextSpan.cs
- CodeArrayIndexerExpression.cs
- CompositeDataBoundControl.cs
- ObjectQueryProvider.cs
- ImportCatalogPart.cs
- SqlMethodCallConverter.cs
- NetNamedPipeBinding.cs
- Vector3DCollection.cs
- PropertyStore.cs
- _LoggingObject.cs
- FixedFindEngine.cs
- PartialClassGenerationTaskInternal.cs
- NonParentingControl.cs
- GridViewCommandEventArgs.cs
- MatrixAnimationUsingPath.cs
- WebPartConnectionsCloseVerb.cs
- EmptyReadOnlyDictionaryInternal.cs
- Scene3D.cs
- TransactionScope.cs
- ProviderConnectionPoint.cs
- SmtpFailedRecipientException.cs
- UpdatePanelTrigger.cs
- TableLayoutStyleCollection.cs
- Color.cs
- ToolStripDropDownClosingEventArgs.cs
- PrintPageEvent.cs
- StandardTransformFactory.cs
- PackagingUtilities.cs
- ChildTable.cs
- KerberosReceiverSecurityToken.cs
- XmlSequenceWriter.cs
- MemberPath.cs
- ObjectNavigationPropertyMapping.cs
- SystemInfo.cs
- DSASignatureFormatter.cs
- IsolatedStorage.cs
- ImageInfo.cs
- XmlSchemaFacet.cs
- HtmlInputButton.cs
- XmlHierarchicalEnumerable.cs
- XmlSchemaRedefine.cs
- SystemFonts.cs
- ReachFixedPageSerializerAsync.cs
- BinaryKeyIdentifierClause.cs
- UTF32Encoding.cs
- util.cs
- AssemblyCollection.cs
- AppSecurityManager.cs
- HttpModuleCollection.cs
- NumericUpDownAccelerationCollection.cs
- XmlnsCompatibleWithAttribute.cs
- ModelService.cs
- LineGeometry.cs
- HtmlLink.cs
- DocumentViewerConstants.cs
- CSharpCodeProvider.cs
- SqlDataRecord.cs
- DbDataSourceEnumerator.cs
- TransformGroup.cs
- PowerEase.cs
- DelegateBodyWriter.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- XmlEventCache.cs
- DataGridViewHitTestInfo.cs
- JumpItem.cs
- CalendarAutoFormatDialog.cs
- HMAC.cs
- ByteAnimationBase.cs
- TableLayoutPanel.cs
- NetworkStream.cs
- OleDbReferenceCollection.cs
- WebMessageEncodingElement.cs
- DataGridViewCellConverter.cs
- oledbconnectionstring.cs
- CodeExpressionStatement.cs
- DataSourceSerializationException.cs
- DataPager.cs
- TdsParser.cs
- BooleanFacetDescriptionElement.cs
- StorageFunctionMapping.cs
- CatalogPart.cs
- StreamInfo.cs
- TaskSchedulerException.cs
- RadioButton.cs
- MeshGeometry3D.cs
- ObjectConverter.cs
- LabelEditEvent.cs
- ReadWriteObjectLock.cs
- ToolTipService.cs
- ArrayExtension.cs
- PropertyGridCommands.cs
- FileLevelControlBuilderAttribute.cs
- SessionSwitchEventArgs.cs
- AsymmetricSignatureFormatter.cs
- InsufficientExecutionStackException.cs
- CompoundFileStorageReference.cs
- Byte.cs