Path: redb-route/redb.Route/Core/CompiledRoute.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/CompiledRoute.cs ---- using redb.Route.Abstractions; using redb.Route.Processors; namespace redb.Route.Core; /// /// Represents a compiled route with lifecycle state (v2 — backed by the /// canonical ProcessorDefinition tree). /// public sealed class CompiledRoute { /// Creates a compiled route. public CompiledRoute( string routeId, string fromUri, IRouteDefinition definition, IProcessor pipeline, IConsumer consumer, IEndpoint endpoint) { RouteId = routeId; FromUri = fromUri; Definition = definition; Pipeline = pipeline; Consumer = consumer; Endpoint = endpoint; } /// Route identifier. public string RouteId { get; } /// /// Source endpoint URI, with secrets redacted (passwords, tokens, keys, and userinfo /// passwords masked to ****). Safe to log, expose via health checks, and render /// in dashboards. This is a display value — it is NOT byte-identical to the original URI /// and must not be re-parsed to recover connection credentials. /// public string FromUri { get; } /// Original route definition (v2 tree). public IRouteDefinition Definition { get; } /// Compiled processor pipeline (root of the route's processor tree). public IProcessor Pipeline { get; } /// The consumer instance. public IConsumer Consumer { get; } /// The source endpoint. public IEndpoint Endpoint { get; } /// /// Whether this route should auto-start when the context starts. /// Can be overridden at runtime (e.g., by Tsak StateStore). /// public bool AutoStart { get; set; } = true; /// Route policy for lifecycle control, or null if none assigned. public IRoutePolicy? Policy { get; internal set; } /// /// Effective cluster-policy resolution captured at compile time. Never null; /// reports "AllNodes" when no policy was attached. /// public RoutePolicyDescriptor PolicyDescriptor { get; internal set; } = new(false, "AllNodes", null, "No policy attached"); /// Current route status. Defaults to Stopped until started by the context. public RouteStatus Status { get; internal set; } = RouteStatus.Stopped; }