WebHttpBehavior.ApplyDispatchBehavior 方法

定义

实现 ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) 方法可支持对终结点上的客户端进行修改或扩展。

public:
 virtual void ApplyDispatchBehavior(System::ServiceModel::Description::ServiceEndpoint ^ endpoint, System::ServiceModel::Dispatcher::EndpointDispatcher ^ endpointDispatcher);
public virtual void ApplyDispatchBehavior (System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.EndpointDispatcher endpointDispatcher);
abstract member ApplyDispatchBehavior : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.EndpointDispatcher -> unit
override this.ApplyDispatchBehavior : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.EndpointDispatcher -> unit
Public Overridable Sub ApplyDispatchBehavior (endpoint As ServiceEndpoint, endpointDispatcher As EndpointDispatcher)

参数

endpoint
ServiceEndpoint

公开协定的终结点。

endpointDispatcher
EndpointDispatcher

要应用行为的终结点调度程序。

实现

注解

作为此方法的一部分,可针对每个操作调用 GetRequestDispatchFormatter(OperationDescription, ServiceEndpoint)GetReplyDispatchFormatter(OperationDescription, ServiceEndpoint),以确定要安装的 IDispatchMessageFormatter

适用于