WorkflowHostingEndpoint.OnGetCreationContext 方法

定义

重写以创建一个新的 WorkflowCreationContext 实例。

protected public:
 virtual System::ServiceModel::Activities::WorkflowCreationContext ^ OnGetCreationContext(cli::array <System::Object ^> ^ inputs, System::ServiceModel::OperationContext ^ operationContext, Guid instanceId, System::ServiceModel::Activities::WorkflowHostingResponseContext ^ responseContext);
protected internal virtual System.ServiceModel.Activities.WorkflowCreationContext OnGetCreationContext (object[] inputs, System.ServiceModel.OperationContext operationContext, Guid instanceId, System.ServiceModel.Activities.WorkflowHostingResponseContext responseContext);
abstract member OnGetCreationContext : obj[] * System.ServiceModel.OperationContext * Guid * System.ServiceModel.Activities.WorkflowHostingResponseContext -> System.ServiceModel.Activities.WorkflowCreationContext
override this.OnGetCreationContext : obj[] * System.ServiceModel.OperationContext * Guid * System.ServiceModel.Activities.WorkflowHostingResponseContext -> System.ServiceModel.Activities.WorkflowCreationContext
Protected Friend Overridable Function OnGetCreationContext (inputs As Object(), operationContext As OperationContext, instanceId As Guid, responseContext As WorkflowHostingResponseContext) As WorkflowCreationContext

参数

inputs
Object[]

对服务操作的输入。

operationContext
OperationContext

提供已调用服务操作的执行上下文。

instanceId
Guid

要创建的工作流实例的实例 ID。

responseContext
WorkflowHostingResponseContext

可用于向请求/答复协定的消息源发回答复的对象。

返回

WorkflowCreationContext

一个工作流创建上下文对象。

示例

下面的示例演示如何实现 OnGetCreationContext 方法。

适用于