Class ServiceCollectionExtensions

Assembly: redb.Route.SignalR.dll

Extension methods for registering the SignalR component with dependency injection.

public static class ServiceCollectionExtensions

Inheritance

Object→ServiceCollectionExtensions

Methods

AddRedbRouteSignalR(IServiceCollection, Action<SignalRRegistrationOptions>?)

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

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

AddRedbRouteSignalR(IServiceCollection)

Registers the SignalR component with the route context. The hub is served by the shared

public static IServiceCollection AddRedbRouteSignalR(this IServiceCollection services)