DurableTaskRegistry.AddOrchestratorFunc 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.
Overloads
AddOrchestratorFunc(TaskName, Action<TaskOrchestrationContext>)
Registers an orchestrator factory, where the implementation is orchestrator
.
public Microsoft.DurableTask.DurableTaskRegistry AddOrchestratorFunc (Microsoft.DurableTask.TaskName name, Action<Microsoft.DurableTask.TaskOrchestrationContext> orchestrator);
member this.AddOrchestratorFunc : Microsoft.DurableTask.TaskName * Action<Microsoft.DurableTask.TaskOrchestrationContext> -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestratorFunc (name As TaskName, orchestrator As Action(Of TaskOrchestrationContext)) As DurableTaskRegistry
Parameters
- name
- TaskName
The name of the orchestrator to register.
- orchestrator
- Action<TaskOrchestrationContext>
The orchestrator implementation.
Returns
The same registry, for call chaining.
Applies to
AddOrchestratorFunc(TaskName, Func<TaskOrchestrationContext,Task>)
Registers an orchestrator factory, where the implementation is orchestrator
.
public Microsoft.DurableTask.DurableTaskRegistry AddOrchestratorFunc (Microsoft.DurableTask.TaskName name, Func<Microsoft.DurableTask.TaskOrchestrationContext,System.Threading.Tasks.Task> orchestrator);
member this.AddOrchestratorFunc : Microsoft.DurableTask.TaskName * Func<Microsoft.DurableTask.TaskOrchestrationContext, System.Threading.Tasks.Task> -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestratorFunc (name As TaskName, orchestrator As Func(Of TaskOrchestrationContext, Task)) As DurableTaskRegistry
Parameters
- name
- TaskName
The name of the orchestrator to register.
- orchestrator
- Func<TaskOrchestrationContext,Task>
The orchestrator implementation.
Returns
The same registry, for call chaining.
Applies to
AddOrchestratorFunc<TInput,TOutput>(TaskName, Func<TaskOrchestrationContext,TInput,Task<TOutput>>)
Registers an orchestrator factory, where the implementation is orchestrator
.
public Microsoft.DurableTask.DurableTaskRegistry AddOrchestratorFunc<TInput,TOutput> (Microsoft.DurableTask.TaskName name, Func<Microsoft.DurableTask.TaskOrchestrationContext,TInput,System.Threading.Tasks.Task<TOutput>> orchestrator);
member this.AddOrchestratorFunc : Microsoft.DurableTask.TaskName * Func<Microsoft.DurableTask.TaskOrchestrationContext, 'Input, System.Threading.Tasks.Task<'Output>> -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestratorFunc(Of TInput, TOutput) (name As TaskName, orchestrator As Func(Of TaskOrchestrationContext, TInput, Task(Of TOutput))) As DurableTaskRegistry
Type Parameters
- TInput
The orchestrator input type.
- TOutput
The orchestrator output type.
Parameters
- name
- TaskName
The name of the orchestrator to register.
- orchestrator
- Func<TaskOrchestrationContext,TInput,Task<TOutput>>
The orchestrator implementation.
Returns
The same registry, for call chaining.
Applies to
AddOrchestratorFunc<TInput,TOutput>(TaskName, Func<TaskOrchestrationContext,TInput,TOutput>)
Registers an orchestrator factory, where the implementation is orchestrator
.
public Microsoft.DurableTask.DurableTaskRegistry AddOrchestratorFunc<TInput,TOutput> (Microsoft.DurableTask.TaskName name, Func<Microsoft.DurableTask.TaskOrchestrationContext,TInput,TOutput> orchestrator);
member this.AddOrchestratorFunc : Microsoft.DurableTask.TaskName * Func<Microsoft.DurableTask.TaskOrchestrationContext, 'Input, 'Output> -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestratorFunc(Of TInput, TOutput) (name As TaskName, orchestrator As Func(Of TaskOrchestrationContext, TInput, TOutput)) As DurableTaskRegistry
Type Parameters
- TInput
The orchestrator input type.
- TOutput
The orchestrator output type.
Parameters
- name
- TaskName
The name of the orchestrator to register.
- orchestrator
- Func<TaskOrchestrationContext,TInput,TOutput>
The orchestrator implementation.
Returns
The same registry, for call chaining.
Applies to
AddOrchestratorFunc<TInput>(TaskName, Action<TaskOrchestrationContext,TInput>)
Registers an orchestrator factory, where the implementation is orchestrator
.
public Microsoft.DurableTask.DurableTaskRegistry AddOrchestratorFunc<TInput> (Microsoft.DurableTask.TaskName name, Action<Microsoft.DurableTask.TaskOrchestrationContext,TInput> orchestrator);
member this.AddOrchestratorFunc : Microsoft.DurableTask.TaskName * Action<Microsoft.DurableTask.TaskOrchestrationContext, 'Input> -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestratorFunc(Of TInput) (name As TaskName, orchestrator As Action(Of TaskOrchestrationContext, TInput)) As DurableTaskRegistry
Type Parameters
- TInput
The orchestrator input type.
Parameters
- name
- TaskName
The name of the orchestrator to register.
- orchestrator
- Action<TaskOrchestrationContext,TInput>
The orchestrator implementation.
Returns
The same registry, for call chaining.
Applies to
AddOrchestratorFunc<TInput>(TaskName, Func<TaskOrchestrationContext,TInput,Task>)
Registers an orchestrator factory, where the implementation is orchestrator
.
public Microsoft.DurableTask.DurableTaskRegistry AddOrchestratorFunc<TInput> (Microsoft.DurableTask.TaskName name, Func<Microsoft.DurableTask.TaskOrchestrationContext,TInput,System.Threading.Tasks.Task> orchestrator);
member this.AddOrchestratorFunc : Microsoft.DurableTask.TaskName * Func<Microsoft.DurableTask.TaskOrchestrationContext, 'Input, System.Threading.Tasks.Task> -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestratorFunc(Of TInput) (name As TaskName, orchestrator As Func(Of TaskOrchestrationContext, TInput, Task)) As DurableTaskRegistry
Type Parameters
- TInput
The orchestrator input type.
Parameters
- name
- TaskName
The name of the orchestrator to register.
- orchestrator
- Func<TaskOrchestrationContext,TInput,Task>
The orchestrator implementation.
Returns
The same registry, for call chaining.
Applies to
AddOrchestratorFunc<TOutput>(TaskName, Func<TaskOrchestrationContext,Task<TOutput>>)
Registers an orchestrator factory, where the implementation is orchestrator
.
public Microsoft.DurableTask.DurableTaskRegistry AddOrchestratorFunc<TOutput> (Microsoft.DurableTask.TaskName name, Func<Microsoft.DurableTask.TaskOrchestrationContext,System.Threading.Tasks.Task<TOutput>> orchestrator);
member this.AddOrchestratorFunc : Microsoft.DurableTask.TaskName * Func<Microsoft.DurableTask.TaskOrchestrationContext, System.Threading.Tasks.Task<'Output>> -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestratorFunc(Of TOutput) (name As TaskName, orchestrator As Func(Of TaskOrchestrationContext, Task(Of TOutput))) As DurableTaskRegistry
Type Parameters
- TOutput
The orchestrator output type.
Parameters
- name
- TaskName
The name of the orchestrator to register.
- orchestrator
- Func<TaskOrchestrationContext,Task<TOutput>>
The orchestrator implementation.
Returns
The same registry, for call chaining.
Applies to
AddOrchestratorFunc<TOutput>(TaskName, Func<TaskOrchestrationContext,TOutput>)
Registers an orchestrator factory, where the implementation is orchestrator
.
public Microsoft.DurableTask.DurableTaskRegistry AddOrchestratorFunc<TOutput> (Microsoft.DurableTask.TaskName name, Func<Microsoft.DurableTask.TaskOrchestrationContext,TOutput> orchestrator);
member this.AddOrchestratorFunc : Microsoft.DurableTask.TaskName * Func<Microsoft.DurableTask.TaskOrchestrationContext, 'Output> -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestratorFunc(Of TOutput) (name As TaskName, orchestrator As Func(Of TaskOrchestrationContext, TOutput)) As DurableTaskRegistry
Type Parameters
- TOutput
The orchestrator output type.
Parameters
- name
- TaskName
The name of the orchestrator to register.
- orchestrator
- Func<TaskOrchestrationContext,TOutput>
The orchestrator implementation.
Returns
The same registry, for call chaining.