Path: redb-route/redb.Route/Abstractions/IComponent.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/Abstractions/IComponent.cs
----
namespace redb.Route.Abstractions;
///
/// Creates endpoints for a specific URI scheme (e.g., kafka, rabbitmq, redis).
/// Each component handles one scheme and creates configured endpoints.
///
public interface IComponent
{
/// The URI scheme this component handles (e.g., "kafka", "rabbitmq").
string Scheme { get; }
///
/// Optional alternate scheme aliases (e.g., "es" for "elasticsearch").
/// registers the component under all schemes.
///
IReadOnlyList AlternateSchemes => [];
/// Creates an endpoint from a parsed URI.
/// Parsed endpoint URI with scheme, path, and parameters.
/// Configured endpoint ready for producing/consuming.
IEndpoint CreateEndpoint(EndpointUri uri);
}