DefaultWorkflowSchedulerService.Schedule Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a workflow instance to the pending work items queue.
Overloads
Schedule(WaitCallback, Guid) |
Adds a workflow instance to the pending work items queue using the specified workflow instance using the specified multicast delegate. |
Schedule(WaitCallback, Guid, DateTime, Guid) |
Adds the specified workflow instance to the pending work item queue using the specified multicast delegate, DateTime and GUIDs. |
Schedule(WaitCallback, Guid)
Adds a workflow instance to the pending work items queue using the specified workflow instance using the specified multicast delegate.
protected public:
override void Schedule(System::Threading::WaitCallback ^ callback, Guid workflowInstanceId);
protected internal override void Schedule (System.Threading.WaitCallback callback, Guid workflowInstanceId);
override this.Schedule : System.Threading.WaitCallback * Guid -> unit
Protected Friend Overrides Sub Schedule (callback As WaitCallback, workflowInstanceId As Guid)
Parameters
- callback
- WaitCallback
A WaitCallback multicast delegate that represents the method to run.
Exceptions
callback
contains a null reference (Nothing
in Visual Basic).
Remarks
Use the WaitCallback constructor to create your delegate method to run in the new thread.
Applies to
Schedule(WaitCallback, Guid, DateTime, Guid)
Adds the specified workflow instance to the pending work item queue using the specified multicast delegate, DateTime and GUIDs.
protected public:
override void Schedule(System::Threading::WaitCallback ^ callback, Guid workflowInstanceId, DateTime whenUtc, Guid timerId);
protected internal override void Schedule (System.Threading.WaitCallback callback, Guid workflowInstanceId, DateTime whenUtc, Guid timerId);
override this.Schedule : System.Threading.WaitCallback * Guid * DateTime * Guid -> unit
Protected Friend Overrides 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.
Exceptions
callback
contains a null reference (Nothing
in Visual Basic).
workflowInstanceId
or timerId
is an empty GUID.
Remarks
Use the WaitCallback constructor to create your delegate method to run in the new thread.