Class ServiceCollectionExtensions
- Namespace
- Savvyio.Extensions.DependencyInjection.RabbitMQ
- Assembly
- Savvyio.Extensions.DependencyInjection.RabbitMQ.dll
Extension methods for the IServiceCollection interface.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
Methods
AddRabbitMqCommandQueue(IServiceCollection, Action<RabbitMqCommandQueueOptions>, Action<ServiceOptions>)
Adds an RabbitMqCommandQueue implementation to the specified IServiceCollection.
public static IServiceCollection AddRabbitMqCommandQueue(this IServiceCollection services, Action<RabbitMqCommandQueueOptions> rabbitMqSetup, Action<ServiceOptions> serviceSetup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
rabbitMqSetupAction<RabbitMqCommandQueueOptions>The RabbitMqCommandQueueOptions that needs to be configured.
serviceSetupAction<ServiceOptions>The ServiceOptions which may be configured.
Returns
- IServiceCollection
A reference to
servicesso that additional calls can be chained.
Remarks
The implementation will be type forwarded accordingly.
Exceptions
- ArgumentNullException
servicescannot be null.
AddRabbitMqCommandQueue<TMarker>(IServiceCollection, Action<RabbitMqCommandQueueOptions<TMarker>>, Action<ServiceOptions>)
Adds an RabbitMqCommandQueue<TMarker> implementation to the specified IServiceCollection.
public static IServiceCollection AddRabbitMqCommandQueue<TMarker>(this IServiceCollection services, Action<RabbitMqCommandQueueOptions<TMarker>> rabbitMqSetup, Action<ServiceOptions> serviceSetup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
rabbitMqSetupAction<RabbitMqCommandQueueOptions<TMarker>>The RabbitMqCommandQueueOptions<TMarker> that needs to be configured.
serviceSetupAction<ServiceOptions>The ServiceOptions which may be configured.
Returns
- IServiceCollection
A reference to
servicesso that additional calls can be chained.
Type Parameters
TMarker
Remarks
The implementation will be type forwarded accordingly.
Exceptions
- ArgumentNullException
servicescannot be null.
AddRabbitMqEventBus(IServiceCollection, Action<RabbitMqEventBusOptions>, Action<ServiceOptions>)
Adds an RabbitMqEventBus implementation to the specified IServiceCollection.
public static IServiceCollection AddRabbitMqEventBus(this IServiceCollection services, Action<RabbitMqEventBusOptions> rabbitMqSetup, Action<ServiceOptions> serviceSetup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
rabbitMqSetupAction<RabbitMqEventBusOptions>The RabbitMqEventBusOptions that needs to be configured.
serviceSetupAction<ServiceOptions>The ServiceOptions which may be configured.
Returns
- IServiceCollection
A reference to
servicesso that additional calls can be chained.
Remarks
The implementation will be type forwarded accordingly.
Exceptions
- ArgumentNullException
servicescannot be null.
AddRabbitMqEventBus<TMarker>(IServiceCollection, Action<RabbitMqEventBusOptions<TMarker>>, Action<ServiceOptions>)
Adds an RabbitMqEventBus<TMarker> implementation to the specified IServiceCollection.
public static IServiceCollection AddRabbitMqEventBus<TMarker>(this IServiceCollection services, Action<RabbitMqEventBusOptions<TMarker>> rabbitMqSetup, Action<ServiceOptions> serviceSetup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
rabbitMqSetupAction<RabbitMqEventBusOptions<TMarker>>The RabbitMqEventBusOptions<TMarker> that needs to be configured.
serviceSetupAction<ServiceOptions>The ServiceOptions which may be configured.
Returns
- IServiceCollection
A reference to
servicesso that additional calls can be chained.
Type Parameters
TMarker
Remarks
The implementation will be type forwarded accordingly.
Exceptions
- ArgumentNullException
servicescannot be null.