Compartilhar via


ITaskActivity.RunAsync(TaskActivityContext, Object) Method

Definition

Invokes the task activity with the specified context and input.

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

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.

Applies to