Method AddRedbRouteSignalR(IServiceCollection, Action<SignalRRegistrationOptions>?)

Assembly: redb.Route.SignalR.dll

Registers the SignalR component and lets the host configure its hubs.

This is the seam for everything the connector deliberately does not depend on: a backplane
for scale-out, and authentication. A hub keeps its connections and groups in the memory of
one process, so with more than one replica a backplane is required: without it a
broadcast only reaches the clients attached to the replica that sent it.


services.AddRedbRouteSignalR(o =>
{
o.UseRedisBackplane("redis:6379"); // redb.Route.SignalR.StackExchangeRedis
o.Authenticate = async ctx => await myJwtValidator.ValidateAsync(
ctx.Request.Query["access_token"]);
});

public static IServiceCollection AddRedbRouteSignalR(this IServiceCollection services, Action<SignalRRegistrationOptions>? configure)