NatsBuilderExtensions

Extension methods to register NATS queue services.

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

Methods

AddKpokNatsQueueService

Adds a IQueueService implemented by NatsQueueService using the specified configurationKey to add the service required QueueConnectionOptions.

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

In this document