Επεξεργασία

Κοινή χρήση μέσω


WorkflowSchedulerService.Schedule Method

Definition

Called by the runtime to request a new thread to run a workflow instance.

Overloads

Schedule(WaitCallback, Guid)

When overridden in a derived class, this method is called by the runtime to schedule a work item (callback) for a particular instance ID.

Schedule(WaitCallback, Guid, DateTime, Guid)

When overridden in a derived class, this method is called by the runtime to schedule a work item (callback) for a particular workflow instance to be done at the given time (DateTime).

Schedule(WaitCallback, Guid)

When overridden in a derived class, this method is called by the runtime to schedule a work item (callback) for a particular instance ID.

protected public:
 abstract void Schedule(System::Threading::WaitCallback ^ callback, Guid workflowInstanceId);
protected internal abstract void Schedule (System.Threading.WaitCallback callback, Guid workflowInstanceId);
abstract member Schedule : System.Threading.WaitCallback * Guid -> unit
Protected Friend MustOverride Sub Schedule (callback As WaitCallback, workflowInstanceId As Guid)

Parameters

callback
WaitCallback

A WaitCallback multicast delegate that represents the method to run.

workflowInstanceId
Guid

A Guid that represents the workflow instance.

Remarks

Use the WaitCallback constructor to create your delegate method to run in the new thread.

Applies to

Schedule(WaitCallback, Guid, DateTime, Guid)

When overridden in a derived class, this method is called by the runtime to schedule a work item (callback) for a particular workflow instance to be done at the given time (DateTime).

protected public:
 abstract void Schedule(System::Threading::WaitCallback ^ callback, Guid workflowInstanceId, DateTime whenUtc, Guid timerId);
protected internal abstract void Schedule (System.Threading.WaitCallback callback, Guid workflowInstanceId, DateTime whenUtc, Guid timerId);
abstract member Schedule : System.Threading.WaitCallback * Guid * DateTime * Guid -> unit
Protected Friend MustOverride Sub Schedule (callback As WaitCallback, workflowInstanceId As Guid, whenUtc As DateTime, timerId As Guid)

Parameters

callback
WaitCallback

A WaitCallback multicast delegate that represents the method to run.

workflowInstanceId
Guid

A Guid that represents the workflow instance to add.

whenUtc
DateTime

The DateTime to begin running the workflow item.

timerId
Guid

A Guid that represents the scheduled timer.

Applies to