Compartilhar via


TaskActivity<TInput,TOutput>.RunAsync Method

Definition

Override to implement async (non-blocking) task activity logic.

public abstract System.Threading.Tasks.Task<TOutput> RunAsync (Microsoft.DurableTask.TaskActivityContext context, TInput input);
abstract member RunAsync : Microsoft.DurableTask.TaskActivityContext * 'Input -> System.Threading.Tasks.Task<'Output>
Public MustOverride Function RunAsync (context As TaskActivityContext, input As TInput) As Task(Of TOutput)

Parameters

context
TaskActivityContext

Provides access to additional context for the current activity execution.

input
TInput

The deserialized activity input.

Returns

Task<TOutput>

The output of the activity as a task.

Applies to