AddAmazonCommandQueue Method
Definition
- Assemblies
- Savvyio.Extensions.DependencyInjection.SimpleQueueService.dll
AddAmazonCommandQueue(IServiceCollection, Action<AmazonCommandQueueOptions>, Action<ServiceOptions>)
Adds an AmazonCommandQueue implementation to the specified IServiceCollection.
public static IServiceCollection AddAmazonCommandQueue(this IServiceCollection services, Action<AmazonCommandQueueOptions> awsSetup, Action<ServiceOptions> serviceSetup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
awsSetupAction<AmazonCommandQueueOptions>The AmazonCommandQueueOptions 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.
AddAmazonCommandQueue<TMarker>(IServiceCollection, Action<AmazonCommandQueueOptions<TMarker>>, Action<ServiceOptions>)
Adds an AmazonCommandQueue<TMarker> implementation to the specified IServiceCollection.
public static IServiceCollection AddAmazonCommandQueue<TMarker>(this IServiceCollection services, Action<AmazonCommandQueueOptions<TMarker>> awsSetup, Action<ServiceOptions> serviceSetup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
awsSetupAction<AmazonCommandQueueOptions<TMarker>>The AmazonCommandQueueOptions<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.