共用方式為


WorkflowRuntimeBehavior.ApplyDispatchBehavior 方法

定義

設定可支援工作流程執行階段行為的工作流程服務。

public:
 virtual void ApplyDispatchBehavior(System::ServiceModel::Description::ServiceDescription ^ serviceDescription, System::ServiceModel::ServiceHostBase ^ serviceHostBase);
public void ApplyDispatchBehavior (System.ServiceModel.Description.ServiceDescription serviceDescription, System.ServiceModel.ServiceHostBase serviceHostBase);
abstract member ApplyDispatchBehavior : System.ServiceModel.Description.ServiceDescription * System.ServiceModel.ServiceHostBase -> unit
override this.ApplyDispatchBehavior : System.ServiceModel.Description.ServiceDescription * System.ServiceModel.ServiceHostBase -> unit
Public Sub ApplyDispatchBehavior (serviceDescription As ServiceDescription, serviceHostBase As ServiceHostBase)

參數

serviceDescription
ServiceDescription

服務描述。

serviceHostBase
ServiceHostBase

服務主機。

實作

備註

此方法會建立 CachedInstanceExpiration 延伸,並為 WorkflowRuntime 設定它。

適用於