Class DependencyInjectionExtensions
Helpers for adding Neon NATS backplane via dependency injection.
Namespace: Neon.SignalR
Assembly: Neon.SignalR.dll
Syntax
public static class DependencyInjectionExtensions
Methods
AddNats(ISignalRServerBuilder, int, Func<NatsOpts, NatsOpts>, Action<NatsConnection>)
Adds scale-out to a ISignalRServerBuilder, using a shared Nats server.
Declaration
public static IServiceCollection AddNats(this ISignalRServerBuilder signalrBuilder, int poolSize = 1, Func<NatsOpts, NatsOpts> configureOpts = null, Action<NatsConnection> configureConnection = null)
Parameters
Type | Name | Description |
---|---|---|
ISignalRServerBuilder | signalrBuilder | |
int | poolSize | |
Func<NatsOpts, NatsOpts> | configureOpts | |
Action<NatsConnection> | configureConnection |
Returns
Type | Description |
---|---|
IServiceCollection | The same instance of the IServiceCollection for chaining. |