RabbitBuilderExtensions

Extension methods to register RabbitMQ queue services.

Namespace:
KpokPatagon.Queue.RabbitMQ.DependencyInjection
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
Yes

Methods

AddKpokRabbitConsumerServices

Adds a IConsumerServices implemented by RabbitConsumerServices using the specified configurationKey to add the service required QueueConnectionOptions.

Signature:
public IServiceCollection AddKpokRabbitConsumerServices(services, configuration, configurationKey, lifetime)
Parameters
Name Type Summary
services IServiceCollection The service collection.
configuration IConfiguration The configuration for the application.
configurationKey String The key of the queue configuration section.
lifetime ServiceLifetime The service lifetime.

AddKpokRabbitPublisherServices

Adds a IPublisherServices implemented by RabbitPublisherServices using the specified configurationKey to add the service required QueueConnectionOptions.

Signature:
public IServiceCollection AddKpokRabbitPublisherServices(services, configuration, configurationKey, lifetime)
Parameters
Name Type Summary
services IServiceCollection The service collection.
configuration IConfiguration The configuration for the application.
configurationKey String The key of the queue configuration section.
lifetime ServiceLifetime The service lifetime.

AddKpokRabbitQueueServices

Adds a IQueueServices implemented by RabbitQueueServices using the specified configurationKey to add the service required QueueConnectionOptions.

Signature:
public IServiceCollection AddKpokRabbitQueueServices(services, configuration, configurationKey, lifetime)
Parameters
Name Type Summary
services IServiceCollection The service collection.
configuration IConfiguration The configuration for the application.
configurationKey String The key of the queue configuration section.
lifetime ServiceLifetime The service lifetime.