Compartilhar via


DurableTaskRegistry Class

Definition

Container for registered ITaskOrchestrator and ITaskActivity implementations.

public sealed class DurableTaskRegistry
type DurableTaskRegistry = class
Public NotInheritable Class DurableTaskRegistry
Inheritance
DurableTaskRegistry

Constructors

DurableTaskRegistry()

Methods

AddActivity(ITaskActivity)

Registers an activity singleton.

AddActivity(TaskName, Func<IServiceProvider,ITaskActivity>)

Registers an activity factory.

AddActivity(TaskName, ITaskActivity)

Registers an activity singleton.

AddActivity(TaskName, Type)

Registers an activity factory, resolving the provided type with the service provider.

AddActivity(Type)

Registers an activity factory, resolving the provided type with the service provider. The TaskName used is derived from the provided type information.

AddActivity<TActivity>()

Registers an activity factory, resolving the provided type with the service provider. The TaskName used is derived from the provided type information.

AddActivity<TActivity>(TaskName)

Registers an activity factory, resolving the provided type with the service provider.

AddActivityFunc(TaskName, Action<TaskActivityContext>)

Registers an activity factory, where the implementation is activity.

AddActivityFunc(TaskName, Func<TaskActivityContext,Task>)

Registers an activity factory, where the implementation is activity.

AddActivityFunc<TInput,TOutput>(TaskName, Func<TaskActivityContext,TInput,Task<TOutput>>)

Registers an activity factory, where the implementation is activity.

AddActivityFunc<TInput,TOutput>(TaskName, Func<TaskActivityContext,TInput,TOutput>)

Registers an activity factory, where the implementation is activity.

AddActivityFunc<TInput>(TaskName, Action<TaskActivityContext,TInput>)

Registers an activity factory, where the implementation is activity.

AddActivityFunc<TInput>(TaskName, Func<TaskActivityContext,TInput,Task>)

Registers an activity factory, where the implementation is activity.

AddActivityFunc<TOutput>(TaskName, Func<TaskActivityContext,Task<TOutput>>)

Registers an activity factory, where the implementation is activity.

AddActivityFunc<TOutput>(TaskName, Func<TaskActivityContext,TOutput>)

Registers an activity factory, where the implementation is activity.

AddOrchestrator(ITaskOrchestrator)

Registers an orchestrator singleton.

AddOrchestrator(TaskName, Func<ITaskOrchestrator>)

Registers an orchestrator factory.

AddOrchestrator(TaskName, ITaskOrchestrator)

Registers an orchestrator singleton.

AddOrchestrator(TaskName, Type)

Registers an orchestrator factory.

AddOrchestrator(Type)

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

AddOrchestrator<TOrchestrator>()

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

AddOrchestrator<TOrchestrator>(TaskName)

Registers an orchestrator factory.

AddOrchestratorFunc(TaskName, Action<TaskOrchestrationContext>)

Registers an orchestrator factory, where the implementation is orchestrator.

AddOrchestratorFunc(TaskName, Func<TaskOrchestrationContext,Task>)

Registers an orchestrator factory, where the implementation is orchestrator.

AddOrchestratorFunc<TInput,TOutput>(TaskName, Func<TaskOrchestrationContext,TInput,Task<TOutput>>)

Registers an orchestrator factory, where the implementation is orchestrator.

AddOrchestratorFunc<TInput,TOutput>(TaskName, Func<TaskOrchestrationContext,TInput,TOutput>)

Registers an orchestrator factory, where the implementation is orchestrator.

AddOrchestratorFunc<TInput>(TaskName, Action<TaskOrchestrationContext,TInput>)

Registers an orchestrator factory, where the implementation is orchestrator.

AddOrchestratorFunc<TInput>(TaskName, Func<TaskOrchestrationContext,TInput,Task>)

Registers an orchestrator factory, where the implementation is orchestrator.

AddOrchestratorFunc<TOutput>(TaskName, Func<TaskOrchestrationContext,Task<TOutput>>)

Registers an orchestrator factory, where the implementation is orchestrator.

AddOrchestratorFunc<TOutput>(TaskName, Func<TaskOrchestrationContext,TOutput>)

Registers an orchestrator factory, where the implementation is orchestrator.

Applies to