Edytuj

Udostępnij za pośrednictwem


SystemTargetExtensions.ScheduleTask Method

Definition

Overloads

ScheduleTask(SystemTarget, Action)

Schedules the provided action on the SystemTarget's Orleans.Runtime.ISchedulingContext.

ScheduleTask(SystemTarget, Func<Task>)

Schedules the provided action on the SystemTarget's Orleans.Runtime.ISchedulingContext.

ScheduleTask<T>(SystemTarget, Func<Task<T>>)

Schedules the provided action on the SystemTarget.

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

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

action
Func<Task>

The action.

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

action
Func<Task<T>>

The action.

Returns

Task<T>

A Task which completes when the action has completed.

Applies to