Class DependencyInjectionReceiveEndpointExtensions
- Namespace
- MassTransit
- Assembly
- MassTransit.ExtensionsDependencyInjectionIntegration.dll
public static class DependencyInjectionReceiveEndpointExtensions
- Inheritance
-
DependencyInjectionReceiveEndpointExtensions
- Inherited Members
Methods
CompensateActivityHost<TActivity, TLog>(IReceiveEndpointConfigurator, IServiceProvider, Action<ICompensateActivityConfigurator<TActivity, TLog>>)
public static void CompensateActivityHost<TActivity, TLog>(this IReceiveEndpointConfigurator configurator, IServiceProvider provider, Action<ICompensateActivityConfigurator<TActivity, TLog>> configure = null) where TActivity : class, ICompensateActivity<TLog> where TLog : class
Parameters
configuratorIReceiveEndpointConfiguratorproviderIServiceProviderconfigureAction<ICompensateActivityConfigurator<TActivity, TLog>>
Type Parameters
TActivityTLog
ConnectConsumer<TConsumer>(IConsumePipeConnector, IServiceProvider, params IPipeSpecification<ConsumerConsumeContext<TConsumer>>[])
Connect a consumer to the bus/mediator
public static ConnectHandle ConnectConsumer<TConsumer>(this IConsumePipeConnector connector, IServiceProvider provider, params IPipeSpecification<ConsumerConsumeContext<TConsumer>>[] pipeSpecifications) where TConsumer : class, IConsumer
Parameters
connectorIConsumePipeConnectorproviderIServiceProviderpipeSpecificationsIPipeSpecification<ConsumerConsumeContext<TConsumer>>[]
Returns
- ConnectHandle
Type Parameters
TConsumer
Consumer<T>(IReceiveEndpointConfigurator, IServiceProvider, Action<IConsumerConfigurator<T>>)
Registers a consumer given the lifetime scope specified
public static void Consumer<T>(this IReceiveEndpointConfigurator configurator, IServiceProvider provider, Action<IConsumerConfigurator<T>> configure = null) where T : class, IConsumer
Parameters
configuratorIReceiveEndpointConfiguratorThe service bus configurator
providerIServiceProviderThe LifetimeScope of the provider
configureAction<IConsumerConfigurator<T>>
Type Parameters
TThe consumer type
Consumer<TConsumer, TMessage>(IBatchConfigurator<TMessage>, IServiceProvider, Action<IConsumerMessageConfigurator<TConsumer, Batch<TMessage>>>)
Connect a consumer with a consumer factory method
public static void Consumer<TConsumer, TMessage>(this IBatchConfigurator<TMessage> configurator, IServiceProvider provider, Action<IConsumerMessageConfigurator<TConsumer, Batch<TMessage>>> configure = null) where TConsumer : class, IConsumer<Batch<TMessage>> where TMessage : class
Parameters
configuratorIBatchConfigurator<TMessage>providerIServiceProviderconfigureAction<IConsumerMessageConfigurator<TConsumer, Batch<TMessage>>>
Type Parameters
TConsumerTMessage
ExecuteActivityHost<TActivity, TArguments>(IReceiveEndpointConfigurator, IServiceProvider, Action<IExecuteActivityConfigurator<TActivity, TArguments>>)
public static void ExecuteActivityHost<TActivity, TArguments>(this IReceiveEndpointConfigurator configurator, IServiceProvider provider, Action<IExecuteActivityConfigurator<TActivity, TArguments>> configure = null) where TActivity : class, IExecuteActivity<TArguments> where TArguments : class
Parameters
configuratorIReceiveEndpointConfiguratorproviderIServiceProviderconfigureAction<IExecuteActivityConfigurator<TActivity, TArguments>>
Type Parameters
TActivityTArguments
ExecuteActivityHost<TActivity, TArguments>(IReceiveEndpointConfigurator, Uri, IServiceProvider, Action<IExecuteActivityConfigurator<TActivity, TArguments>>)
public static void ExecuteActivityHost<TActivity, TArguments>(this IReceiveEndpointConfigurator configurator, Uri compensateAddress, IServiceProvider provider, Action<IExecuteActivityConfigurator<TActivity, TArguments>> configure = null) where TActivity : class, IExecuteActivity<TArguments> where TArguments : class
Parameters
configuratorIReceiveEndpointConfiguratorcompensateAddressUriproviderIServiceProviderconfigureAction<IExecuteActivityConfigurator<TActivity, TArguments>>
Type Parameters
TActivityTArguments
Saga<T>(IReceiveEndpointConfigurator, IServiceProvider, Action<ISagaConfigurator<T>>)
Registers a saga using the container that has the repository resolved from the container
public static void Saga<T>(this IReceiveEndpointConfigurator configurator, IServiceProvider provider, Action<ISagaConfigurator<T>> configure = null) where T : class, ISaga
Parameters
configuratorIReceiveEndpointConfiguratorproviderIServiceProviderconfigureAction<ISagaConfigurator<T>>
Type Parameters
T
StateMachineSaga<TInstance>(IReceiveEndpointConfigurator, SagaStateMachine<TInstance>, IServiceProvider, Action<ISagaConfigurator<TInstance>>)
Subscribe a state machine saga to the endpoint
public static void StateMachineSaga<TInstance>(this IReceiveEndpointConfigurator configurator, SagaStateMachine<TInstance> stateMachine, IServiceProvider serviceProvider, Action<ISagaConfigurator<TInstance>> configure = null) where TInstance : class, SagaStateMachineInstance
Parameters
configuratorIReceiveEndpointConfiguratorstateMachineSagaStateMachine<TInstance>serviceProviderIServiceProviderThe Container reference to resolve the repository
configureAction<ISagaConfigurator<TInstance>>Optionally configure the saga
Type Parameters
TInstanceThe state machine instance type
StateMachineSaga<TInstance>(IReceiveEndpointConfigurator, IServiceProvider, Action<ISagaConfigurator<TInstance>>)
Subscribe a state machine saga to the endpoint
public static void StateMachineSaga<TInstance>(this IReceiveEndpointConfigurator configurator, IServiceProvider provider, Action<ISagaConfigurator<TInstance>> configure = null) where TInstance : class, SagaStateMachineInstance
Parameters
configuratorIReceiveEndpointConfiguratorproviderIServiceProviderThe Container reference to resolve the repository
configureAction<ISagaConfigurator<TInstance>>Optionally configure the saga
Type Parameters
TInstanceThe state machine instance type