Table of Contents

AddRabbitMqEventBus Method

Definition

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

services IServiceCollection

The IServiceCollection to extend.

rabbitMqSetup Action<RabbitMqEventBusOptions>

The RabbitMqEventBusOptions 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.

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

services IServiceCollection

The IServiceCollection to extend.

rabbitMqSetup Action<RabbitMqEventBusOptions<TMarker>>

The RabbitMqEventBusOptions<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.