Class ServiceCollectionExtensions
- Namespace
- Savvyio.Extensions.DependencyInjection.QueueStorage
- Assembly
- Savvyio.Extensions.DependencyInjection.QueueStorage.dll
Extension methods for the IServiceCollection interface.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
Methods
AddAzureCommandQueue(IServiceCollection, Action<AzureQueueOptions>, Action<ServiceOptions>)
Adds an AzureCommandQueue implementation to the specified IServiceCollection.
public static IServiceCollection AddAzureCommandQueue(this IServiceCollection services, Action<AzureQueueOptions> azureQueueSetup, Action<ServiceOptions> serviceSetup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
azureQueueSetupAction<AzureQueueOptions>The AzureQueueOptions 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.
AddAzureCommandQueue<TMarker>(IServiceCollection, Action<AzureQueueOptions<TMarker>>, Action<ServiceOptions>)
Adds an AzureCommandQueue<TMarker> implementation to the specified IServiceCollection.
public static IServiceCollection AddAzureCommandQueue<TMarker>(this IServiceCollection services, Action<AzureQueueOptions<TMarker>> azureQueueSetup, Action<ServiceOptions> serviceSetup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
azureQueueSetupAction<AzureQueueOptions<TMarker>>The AzureQueueOptions<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.
AddAzureEventBus(IServiceCollection, Action<AzureQueueOptions>, Action<AzureEventBusOptions>, Action<ServiceOptions>)
Adds an AzureEventBus implementation to the specified IServiceCollection.
public static IServiceCollection AddAzureEventBus(this IServiceCollection services, Action<AzureQueueOptions> azureQueueSetup, Action<AzureEventBusOptions> azureEventBusSetup, Action<ServiceOptions> serviceSetup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
azureQueueSetupAction<AzureQueueOptions>The AzureQueueOptions that needs to be configured.
azureEventBusSetupAction<AzureEventBusOptions>The AzureEventBusOptions 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.
AddAzureEventBus<TMarker>(IServiceCollection, Action<AzureQueueOptions<TMarker>>, Action<AzureEventBusOptions<TMarker>>, Action<ServiceOptions>)
Adds an AzureEventBus<TMarker> implementation to the specified IServiceCollection.
public static IServiceCollection AddAzureEventBus<TMarker>(this IServiceCollection services, Action<AzureQueueOptions<TMarker>> azureQueueSetup, Action<AzureEventBusOptions<TMarker>> azureEventBusSetup, Action<ServiceOptions> serviceSetup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
azureQueueSetupAction<AzureQueueOptions<TMarker>>The AzureQueueOptions<TMarker> that needs to be configured.
azureEventBusSetupAction<AzureEventBusOptions<TMarker>>The AzureEventBusOptions<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.