AspNetCompatibilityRequirementsAttribute.IServiceBehavior.ApplyDispatchBehavior Method

Definition

Checks that the type of hosting is consistent with the ASP.NET compatibility requirements.

C#
void IServiceBehavior.ApplyDispatchBehavior(System.ServiceModel.Description.ServiceDescription description, System.ServiceModel.ServiceHostBase serviceHostBase);

Parameters

description
ServiceDescription

The ServiceDescription of the service.

serviceHostBase
ServiceHostBase

The ServiceHostBase for hosting the service.

Implements

Exceptions

description is null.

The service hosting is not compatible with the ASP.NET compatibility requirements.

Remarks

This method supports the WCF infrastructure and is not intended to be used directly from your code.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1