Compartilhar via


SystemTargetExtensions.ScheduleTask Método

Definição

Sobrecargas

ScheduleTask(SystemTarget, Action)

Agenda o fornecido action no SystemTarget' s Orleans.Runtime.ISchedulingContext.

ScheduleTask(SystemTarget, Func<Task>)

Agenda o fornecido action no SystemTarget' s Orleans.Runtime.ISchedulingContext.

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

Agenda o fornecido action no SystemTarget.

ScheduleTask(SystemTarget, Action)

Origem:
SystemTargetExtensions.cs

Agenda o fornecido action no 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

Parâmetros

action
Action

A ação.

Retornos

Um Task que é concluído quando o action é concluído.

Aplica-se a

ScheduleTask(SystemTarget, Func<Task>)

Origem:
SystemTargetExtensions.cs

Agenda o fornecido action no 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

Parâmetros

action
Func<Task>

A ação.

Retornos

Um Task que é concluído quando o action é concluído.

Aplica-se a

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

Origem:
SystemTargetExtensions.cs

Agenda o fornecido action no 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)

Parâmetros de tipo

T

Parâmetros

action
Func<Task<T>>

A ação.

Retornos

Task<T>

Um Task que é concluído quando o action é concluído.

Aplica-se a