Compartilhar via


DurableTaskRegistry.AddOrchestrator Method

Definition

Overloads

AddOrchestrator(ITaskOrchestrator)

Registers an orchestrator singleton.

AddOrchestrator(Type)

Registers an orchestrator factory. The TaskName used is derived from the provided type information.

AddOrchestrator(TaskName, ITaskOrchestrator)

Registers an orchestrator singleton.

AddOrchestrator(TaskName, Func<ITaskOrchestrator>)

Registers an orchestrator factory.

AddOrchestrator(TaskName, Type)

Registers an orchestrator factory.

AddOrchestrator<TOrchestrator>(TaskName)

Registers an orchestrator factory.

AddOrchestrator<TOrchestrator>()

Registers an orchestrator factory. The TaskName used is derived from the provided type information.

AddOrchestrator(ITaskOrchestrator)

Registers an orchestrator singleton.

public Microsoft.DurableTask.DurableTaskRegistry AddOrchestrator (Microsoft.DurableTask.ITaskOrchestrator orchestrator);
member this.AddOrchestrator : Microsoft.DurableTask.ITaskOrchestrator -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestrator (orchestrator As ITaskOrchestrator) As DurableTaskRegistry

Parameters

orchestrator
ITaskOrchestrator

The orchestration instance to use.

Returns

The same registry, for call chaining.

Applies to

AddOrchestrator(Type)

Registers an orchestrator factory. The TaskName used is derived from the provided type information.

public Microsoft.DurableTask.DurableTaskRegistry AddOrchestrator (Type type);
member this.AddOrchestrator : Type -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestrator (type As Type) As DurableTaskRegistry

Parameters

type
Type

The orchestrator type.

Returns

The same registry, for call chaining.

Applies to

AddOrchestrator(TaskName, ITaskOrchestrator)

Registers an orchestrator singleton.

public Microsoft.DurableTask.DurableTaskRegistry AddOrchestrator (Microsoft.DurableTask.TaskName name, Microsoft.DurableTask.ITaskOrchestrator orchestrator);
member this.AddOrchestrator : Microsoft.DurableTask.TaskName * Microsoft.DurableTask.ITaskOrchestrator -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestrator (name As TaskName, orchestrator As ITaskOrchestrator) As DurableTaskRegistry

Parameters

name
TaskName

The name of the orchestrator to register.

orchestrator
ITaskOrchestrator

The orchestration instance to use.

Returns

The same registry, for call chaining.

Applies to

AddOrchestrator(TaskName, Func<ITaskOrchestrator>)

Registers an orchestrator factory.

public Microsoft.DurableTask.DurableTaskRegistry AddOrchestrator (Microsoft.DurableTask.TaskName name, Func<Microsoft.DurableTask.ITaskOrchestrator> factory);
member this.AddOrchestrator : Microsoft.DurableTask.TaskName * Func<Microsoft.DurableTask.ITaskOrchestrator> -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestrator (name As TaskName, factory As Func(Of ITaskOrchestrator)) As DurableTaskRegistry

Parameters

name
TaskName

The name of the orchestrator.

factory
Func<ITaskOrchestrator>

The orchestrator factory.

Returns

This registry instance, for call chaining.

Exceptions

Thrown if any of the following are true:

Applies to

AddOrchestrator(TaskName, Type)

Registers an orchestrator factory.

public Microsoft.DurableTask.DurableTaskRegistry AddOrchestrator (Microsoft.DurableTask.TaskName name, Type type);
member this.AddOrchestrator : Microsoft.DurableTask.TaskName * Type -> Microsoft.DurableTask.DurableTaskRegistry
Public Function AddOrchestrator (name As TaskName, type As Type) As DurableTaskRegistry

Parameters

name
TaskName

The name of the orchestrator to register.

type
Type

The orchestrator type.

Returns

The same registry, for call chaining.

Applies to

AddOrchestrator<TOrchestrator>(TaskName)

Registers an orchestrator factory.

public Microsoft.DurableTask.DurableTaskRegistry AddOrchestrator<TOrchestrator> (Microsoft.DurableTask.TaskName name) where TOrchestrator : class, Microsoft.DurableTask.ITaskOrchestrator;
member this.AddOrchestrator : Microsoft.DurableTask.TaskName -> Microsoft.DurableTask.DurableTaskRegistry (requires 'Orchestrator : null and 'Orchestrator :> Microsoft.DurableTask.ITaskOrchestrator)
Public Function AddOrchestrator(Of TOrchestrator As {Class, ITaskOrchestrator}) (name As TaskName) As DurableTaskRegistry

Type Parameters

TOrchestrator

The type of orchestrator to register.

Parameters

name
TaskName

The name of the orchestrator to register.

Returns

The same registry, for call chaining.

Applies to

AddOrchestrator<TOrchestrator>()

Registers an orchestrator factory. The TaskName used is derived from the provided type information.

public Microsoft.DurableTask.DurableTaskRegistry AddOrchestrator<TOrchestrator> () where TOrchestrator : class, Microsoft.DurableTask.ITaskOrchestrator;
member this.AddOrchestrator : unit -> Microsoft.DurableTask.DurableTaskRegistry (requires 'Orchestrator : null and 'Orchestrator :> Microsoft.DurableTask.ITaskOrchestrator)
Public Function AddOrchestrator(Of TOrchestrator As {Class, ITaskOrchestrator}) () As DurableTaskRegistry

Type Parameters

TOrchestrator

The type of orchestrator to register.

Returns

The same registry, for call chaining.

Applies to