Compartilhar via


FuncTaskOrchestrator.Create<TInput,TOutput> Method

Definition

Creates a new TaskOrchestrator<TInput,TOutput> with the provided function as the implementation.

public static Microsoft.DurableTask.TaskOrchestrator<TInput,TOutput> Create<TInput,TOutput> (Func<Microsoft.DurableTask.TaskOrchestrationContext,TInput,System.Threading.Tasks.Task<TOutput>> implementation);
static member Create : Func<Microsoft.DurableTask.TaskOrchestrationContext, 'Input, System.Threading.Tasks.Task<'Output>> -> Microsoft.DurableTask.TaskOrchestrator<'Input, 'Output>
Public Shared Function Create(Of TInput, TOutput) (implementation As Func(Of TaskOrchestrationContext, TInput, Task(Of TOutput))) As TaskOrchestrator(Of TInput, TOutput)

Type Parameters

TInput

The input type.

TOutput

The output type.

Parameters

implementation
Func<TaskOrchestrationContext,TInput,Task<TOutput>>

The orchestrator implementation.

Returns

A new orchestrator.

Applies to