Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: Microsoft.Azure.Workflows.Sdk
WorkflowProviderExtensions contains extension methods for registering IWorkflowProvider implementations with dependency injection containers.
Usage
// Register a single workflow provider
services.AddWorkflowProvider<MyWorkflowProvider>();
// Register all providers in an assembly
services.AddWorkflowProviders(typeof(MyWorkflowProvider).Assembly);
Methods
AddWorkflowProvider<T>(IServiceCollection services)
Registers a single IWorkflowProvider implementation as a singleton in the target IServiceCollection.
public static IServiceCollection AddWorkflowProvider<T>(this IServiceCollection services) where T : class, IWorkflowProvider
| Name | Description | Type | Required |
|---|---|---|---|
| services | The service collection to register with. | IServiceCollection | Yes |
services.AddWorkflowProvider<MyWorkflowProvider>();
AddWorkflowProviders
Scans an Assembly for concrete IWorkflowProvider implementations and registers each one as a singleton in the target IServiceCollection.
public static IServiceCollection AddWorkflowProviders(this IServiceCollection services, Assembly assembly)
| Name | Description | Type | Required |
|---|---|---|---|
| services | The service collection to register with. | IServiceCollection | Yes |
| assembly | The assembly to scan for IWorkflowProvider implementations. | Assembly | Yes |
services.AddWorkflowProviders(typeof(MyWorkflowProvider).Assembly);
Related Content
- AgentToolContext Class Definition
- IChainableNode Interface Definition
- IVariableWorkflowAction Interface Definition
- IWorkflowAction Interface Definition
- IWorkflowOperation Interface Definition
- IWorkflowProvider Interface Definition
- IWorkflowTrigger Interface Definition
- OperationChain Class Definition
- Typed Workflow Action Interfaces Definition
- Typed Workflow Trigger Interfaces Definition
- WorkflowActionBase Class Definition
- WorkflowActions Class Definition
- WorkflowBuiltInActions Class Definition
- WorkflowBuiltInTriggers Class Definition
- WorkflowContext Class Definition
- WorkflowControlActions Class Definition
- WorkflowFactory Class Definition
- WorkflowManagedActions Class Definition
- WorkflowManagedTriggers Class Definition
- WorkflowTriggerBase Class Definition
- WorkflowTriggers Class Definition
- WorkflowVariableActions Class Definition