Class EndpointRegistration

Namespace: redb.Route.Http
Assembly: redb.Route.Http.Hosting.dll

Endpoints a transport mapped onto a shared listener with
: framework endpoints of its own (a SignalR hub, a gRPC
service, minimal API handlers) served from a service container of its own. Holding the registration keeps the
listener alive; disposing it removes the endpoints from the running listener, and the listener stops once nothing
occupies it any more.

public sealed class EndpointRegistration : IDisposable

Inheritance

Object→EndpointRegistration

Implements

Properties

Endpoints

The endpoints, as the listener serves them.

public IReadOnlyList<Endpoint> Endpoints { get; }

Host

Bind host of the listener the endpoints are on.

public string Host { get; }

Port

Bind port of the listener the endpoints are on.

public int Port { get; }

Services

The container the endpoints were mapped with and that serves their requests.

public IServiceProvider Services { get; }

Methods

Dispose()

Removes the endpoints from the listener. Disposing twice is safe.

public void Dispose()