Class SignalRConsumer

Assembly: redb.Route.SignalR.dll

SignalR consumer. Embedded Kestrel-based SignalR Hub server that accepts connections,
receives method invocations, and dispatches them into the route processor pipeline.
Supports JSON and MessagePack protocols, group management, InOut exchange pattern,
and lifecycle events (Connected/Disconnected).

public class SignalRConsumer : IConsumer

Inheritance

Object→SignalRConsumer

Implements

Properties

BaseUrl

The base URL the server is listening on. Available after Start().

public string? BaseUrl { get; }

Endpoint

The endpoint this consumer is attached to (for diagnostics/logging).

public IEndpoint Endpoint { get; }

HubPath

The hub path for this consumer.

public string HubPath { get; }

ProcessedCount

Number of invocations successfully processed.

public long ProcessedCount { get; }

Methods

Start(CancellationToken)

Starts consuming messages.

public Task Start(CancellationToken ct = default)

Stop(CancellationToken)

Stops consuming messages.

public Task Stop(CancellationToken ct = default)

Constructors