FuncTaskOrchestrator.Create<TInput,TOutput> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.