Table of Contents

AddRabbitMqCommandQueue Method

Definition

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

services IServiceCollection

The IServiceCollection to extend.

rabbitMqSetup Action<RabbitMqCommandQueueOptions>

The RabbitMqCommandQueueOptions that needs to be configured.

serviceSetup Action<ServiceOptions>

The ServiceOptions which may be configured.

Returns

IServiceCollection

A reference to services so that additional calls can be chained.

Remarks

The implementation will be type forwarded accordingly.

Exceptions

ArgumentNullException

services cannot 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

services IServiceCollection

The IServiceCollection to extend.

rabbitMqSetup Action<RabbitMqCommandQueueOptions<TMarker>>

The RabbitMqCommandQueueOptions<TMarker> that needs to be configured.

serviceSetup Action<ServiceOptions>

The ServiceOptions which may be configured.

Returns

IServiceCollection

A reference to services so that additional calls can be chained.

Type Parameters

TMarker

Remarks

The implementation will be type forwarded accordingly.

Exceptions

ArgumentNullException

services cannot be null.