Class NatsHostingExtensions
public static class NatsHostingExtensions
- Inheritance
-
NatsHostingExtensions
- Inherited Members
Methods
- AddNats(IServiceCollection, int, Func<NatsOpts, NatsOpts>?, Action<NatsConnection>?)
Add NatsConnection/Pool to ServiceCollection. When poolSize = 1, registered
NatsConnection
andINatsConnection
as singleton. Others, registeredNatsConnectionPool
as singleton,NatsConnection
andINatsConnection
as transient(get from pool).