SystemTargetExtensions.ScheduleTask 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.
Overloads
ScheduleTask(SystemTarget, Action) |
Schedules the provided |
ScheduleTask(SystemTarget, Func<Task>) |
Schedules the provided |
ScheduleTask<T>(SystemTarget, Func<Task<T>>) |
Schedules the provided |
ScheduleTask(SystemTarget, Action)
- Source:
- SystemTargetExtensions.cs
Schedules the provided action
on the SystemTarget's Orleans.Runtime.ISchedulingContext.
public static System.Threading.Tasks.Task ScheduleTask (this Orleans.Runtime.SystemTarget self, Action action);
static member ScheduleTask : Orleans.Runtime.SystemTarget * Action -> System.Threading.Tasks.Task
<Extension()>
Public Function ScheduleTask (self As SystemTarget, action As Action) As Task
Parameters
- self
- SystemTarget
The SystemTarget.
- action
- Action
The action.
Returns
A Task which completes when the action
has completed.
Applies to
ScheduleTask(SystemTarget, Func<Task>)
- Source:
- SystemTargetExtensions.cs
Schedules the provided action
on the SystemTarget's Orleans.Runtime.ISchedulingContext.
public static System.Threading.Tasks.Task ScheduleTask (this Orleans.Runtime.SystemTarget self, Func<System.Threading.Tasks.Task> action);
static member ScheduleTask : Orleans.Runtime.SystemTarget * Func<System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
<Extension()>
Public Function ScheduleTask (self As SystemTarget, action As Func(Of Task)) As Task
Parameters
- self
- SystemTarget
The SystemTarget.
Returns
A Task which completes when the action
has completed.
Applies to
ScheduleTask<T>(SystemTarget, Func<Task<T>>)
- Source:
- SystemTargetExtensions.cs
Schedules the provided action
on the SystemTarget.
public static System.Threading.Tasks.Task<T> ScheduleTask<T> (this Orleans.Runtime.SystemTarget self, Func<System.Threading.Tasks.Task<T>> action);
static member ScheduleTask : Orleans.Runtime.SystemTarget * Func<System.Threading.Tasks.Task<'T>> -> System.Threading.Tasks.Task<'T>
<Extension()>
Public Function ScheduleTask(Of T) (self As SystemTarget, action As Func(Of Task(Of T))) As Task(Of T)
Type Parameters
- T
Parameters
- self
- SystemTarget
The SystemTarget.
Returns
A Task which completes when the action
has completed.