Path: redb-route/redb.Route/Definitions/ToDefinition.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/Definitions/ToDefinition.cs ---- using redb.Route.Abstractions; using redb.Route.Processors; namespace redb.Route.Definitions; /// /// Sends the exchange to the given endpoint URI. /// Leaf node — no . /// public sealed class ToDefinition : ProcessorDefinition { private readonly string _uri; /// Creates a new for the given endpoint URI. public ToDefinition(string uri) { ArgumentException.ThrowIfNullOrWhiteSpace(uri); _uri = uri; } /// The target endpoint URI. Read by AdviceWith weaving (MockEndpoints, WeaveByToUri). public string Uri => _uri; /// public override IProcessor CreateProcessor(IRouteContext context) => new ToProcessor(_uri, context); }