Table of Contents

AddAmazonEventBus Method

Definition

AddAmazonEventBus(IServiceCollection, Action<AmazonEventBusOptions>, Action<ServiceOptions>)

Adds an AmazonEventBus implementation to the specified IServiceCollection.

public static IServiceCollection AddAmazonEventBus(this IServiceCollection services, Action<AmazonEventBusOptions> awsSetup, Action<ServiceOptions> serviceSetup = null)

Parameters

services IServiceCollection

The IServiceCollection to extend.

awsSetup Action<AmazonEventBusOptions>

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

AddAmazonEventBus<TMarker>(IServiceCollection, Action<AmazonEventBusOptions<TMarker>>, Action<ServiceOptions>)

Adds an AmazonEventBus<TMarker> implementation to the specified IServiceCollection.

public static IServiceCollection AddAmazonEventBus<TMarker>(this IServiceCollection services, Action<AmazonEventBusOptions<TMarker>> awsSetup, Action<ServiceOptions> serviceSetup = null)

Parameters

services IServiceCollection

The IServiceCollection to extend.

awsSetup Action<AmazonEventBusOptions<TMarker>>

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