Path: redb-route/redb.Route/Abstractions/IRoutePolicyFactory.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/IRoutePolicyFactory.cs ---- using redb.Route.Definitions; namespace redb.Route.Abstractions; /// /// Factory that creates instances for routes during compilation. /// Registered via . /// When multiple factories are registered, the first non-null result wins. /// public interface IRoutePolicyFactory { /// /// Creates a route policy for the given route, or returns null if this factory /// does not apply to the route. /// /// Route context. /// Route identifier. /// Route definition (access GetCluster(), etc.). /// A route policy, or null if this factory does not handle this route. IRoutePolicy? CreateRoutePolicy(IRouteContext context, string routeId, RouteDefinition definition); }