Class DependencyInjectionStateMachineSagaRegistrationExtensions
- Namespace
- MassTransit
- Assembly
- MassTransit.ExtensionsDependencyInjectionIntegration.dll
public static class DependencyInjectionStateMachineSagaRegistrationExtensions
- Inheritance
-
DependencyInjectionStateMachineSagaRegistrationExtensions
- Inherited Members
Methods
RegisterSagaStateMachine(IServiceCollection, Type)
Add the state machine sagas in the specified assembly to the service collection
public static void RegisterSagaStateMachine(this IServiceCollection collection, Type type)
Parameters
collectionIServiceCollectiontypeTypeThe state machine saga type
RegisterSagaStateMachine<TStateMachine, TInstance>(IServiceCollection)
Add the state machine sagas in the specified assembly to the service collection
public static void RegisterSagaStateMachine<TStateMachine, TInstance>(this IServiceCollection collection) where TStateMachine : class, SagaStateMachine<TInstance> where TInstance : class, SagaStateMachineInstance
Parameters
collectionIServiceCollection
Type Parameters
TStateMachineTInstance
RegisterSagaStateMachines(IServiceCollection, params Assembly[])
Add the state machine sagas in the specified assembly to the service collection
public static void RegisterSagaStateMachines(this IServiceCollection collection, params Assembly[] assemblies)
Parameters
collectionIServiceCollectionassembliesAssembly[]If specified, only the specified assemblies are scanned
RegisterSagaStateMachines(IServiceCollection, params Type[])
Add the state machine sagas by type
public static void RegisterSagaStateMachines(this IServiceCollection collection, params Type[] types)
Parameters
collectionIServiceCollectiontypesType[]If specified, only the specified assemblies are scanned