Class SignalRComponent
SignalR component. Scheme: "signalr".
Consumer: Kestrel-based SignalR Hub server — accepts connections and receives method invocations.
Producer (client): HubConnection — connects to a remote SignalR hub and invokes methods.
Producer (server): IHubContext — broadcasts to clients of the local hub.
URI format: signalr:host:port/hubPath?method=Send&inOut=true&messagePack=true
public class SignalRComponent : ComponentBase, IComponent, IAsyncDisposable
Inheritance
Implements
Inherited Members
Properties
Authenticate
Authenticates hub connections. Without it the hub accepts anonymous connections and
public Func<HttpContext, Task<ClaimsPrincipal?>>? Authenticate { get; set; }
HubServicesConfigurator
Extra service registrations for the container of each hub, supplied by the host: a SignalR
public Action<IServiceCollection, SignalRHubDescriptor>? HubServicesConfigurator { get; set; }
Scheme
The URI scheme this component handles (e.g., "kafka", "rabbitmq").
public override string Scheme { get; }
ServerManager
Shared Kestrel host. Set by AddRedbRouteSignalR() so a hub multiplexes onto the same
public SharedHttpServerManager? ServerManager { get; set; }
Methods
CreateEndpoint(EndpointUri)
Creates an endpoint from a parsed URI.
public override IEndpoint CreateEndpoint(EndpointUri uri)
DisposeAsync()
Releases component-owned long-lived resources. Default implementation is a no-op.
public override ValueTask DisposeAsync()