共用方式為


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

適用於