Compartilhar via


TaskActivity<TInput,TOutput>.ITaskActivity.RunAsync Method

Definition

Invokes the task activity with the specified context and input.

System.Threading.Tasks.Task<object?> ITaskActivity.RunAsync (Microsoft.DurableTask.TaskActivityContext context, object? input);
abstract member Microsoft.DurableTask.ITaskActivity.RunAsync : Microsoft.DurableTask.TaskActivityContext * obj -> System.Threading.Tasks.Task<obj>
override this.Microsoft.DurableTask.ITaskActivity.RunAsync : Microsoft.DurableTask.TaskActivityContext * obj -> System.Threading.Tasks.Task<obj>
Function RunAsync (context As TaskActivityContext, input As Object) As Task(Of Object) Implements ITaskActivity.RunAsync

Parameters

context
TaskActivityContext

The task activity's context.

input
Object

The task activity's input.

Returns

Returns the activity output as the result of a Task.

Implements

Applies to