Table of Contents

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

collection IServiceCollection
type Type

The 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

collection IServiceCollection

Type Parameters

TStateMachine
TInstance

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

collection IServiceCollection
assemblies Assembly[]

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

collection IServiceCollection
types Type[]

If specified, only the specified assemblies are scanned