ServiceMetadataBehavior.IServiceBehavior.ApplyDispatchBehavior Method (ServiceDescription, ServiceHostBase)

 

Implementation of IServiceBehavior that configures the underlying bindings to support the behavior on the service.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

void IServiceBehavior.ApplyDispatchBehavior(
	ServiceDescription description,
	ServiceHostBase serviceHostBase
)

Parameters

description
Type: System.ServiceModel.Description.ServiceDescription

The service description to be modified.

serviceHostBase
Type: System.ServiceModel.ServiceHostBase

The host of the service.

Exception Condition
ArgumentNullException

Either the description or the serviceHostBase are null.

InvalidOperationException

The destination address of the serviceHostBase is null.

.NET Framework
Available since 3.0
Return to top
Show: