Path: redb-route/redb.Route/Core/ISupervisingEndpoint.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Core/ISupervisingEndpoint.cs
----
using Microsoft.Extensions.Logging;
namespace redb.Route.Core;
///
/// An endpoint that takes connection supervisors into its health (), seen without its
/// options type, as sees its endpoint.
///
internal interface ISupervisingEndpoint
{
/// Creates a supervisor with the context's reconnect options and registers it.
ConnectionSupervisor Supervise(string name, ILogger? logger);
/// Removes a registered supervisor.
void Unsupervise(ConnectionSupervisor supervisor);
}