示例#1
0
 internal WorkflowInstance(Guid instanceId, WorkflowRuntime runtime, WorkflowExecutionContext executionContext)
 {
     CodeContract.Requires(instanceId != Guid.Empty);
     CodeContract.Requires(runtime != null);
     CodeContract.Requires(executionContext != null);
     InstanceId       = instanceId;
     Runtime          = runtime;
     ExecutionContext = executionContext;
     ExecutionContext.SetWorkflowInstance(this);
 }
示例#2
0
 internal WorkflowInstance(Guid instanceId, WorkflowRuntime runtime, WorkflowExecutionContext executionContext)
 {
     CodeContract.Requires(instanceId != Guid.Empty);
     CodeContract.Requires(runtime != null);
     CodeContract.Requires(executionContext != null);
     InstanceId = instanceId;
     Runtime = runtime;
     ExecutionContext = executionContext;
     ExecutionContext.SetWorkflowInstance(this);
 }