You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove the unused TRouteOptions type parameter from transport builders #620
Every transport builder carries three type parameters, TransportBuilder<TTransportOptions, TRouteOptions, TConsumerOptions>, but no transport defines any route option: all ten route option classes are empty. The extra parameter lengthens every signature and error message for no benefit.
Evidence
Empty declarations: KafkaRouteOptions, ServiceBusRouteOptions, AmazonSqsRouteOptions, AmazonSnsRouteOptions, RabbitMqRouteOptions, RabbitMqStreamsRouteOptions, NatsRouteOptions, GooglePubSubRouteOptions, PostgreSqlLocalRouteOptions, InMemoryRouteOptions (all public sealed class XRouteOptions;).
Related naming overlap: RouteBuilder.Options (the empty type), RouteBuilder.SendOptions (SendRouteOptions), TransportBuilder.SendDefaults and the per-send SendOptions.
Proposal
Drop TRouteOptions and the empty classes while breaking changes are still allowed. Expose transport-specific route settings as extension methods on the route builder when one is first needed.
Found by reading the code at 02fe06f; not reproduced at runtime unless stated.
Acceptance criteria
Remove the unused route-options parameter and empty route-options classes from the declaration/building APIs and all transport registrations; retain portable SendRouteOptions and native configuration pass-through.
Update generated call sites, samples and website API examples together; cover representative send, request and consumer declarations with the reduced generic surface.
Preserve startup validation, native routing and steady-state pipeline behavior. Record any design-record updates required by the changed public signatures.
Confirmed all ten route-options classes remain empty at origin/main 0b2617b. Added acceptance criteria covering all registrations and public call sites; this remains actionable API cleanup.
Activity
thomhurst commentedon Nov 13, 2026
Confirmed all ten route-options classes remain empty at origin/main 0b2617b. Added acceptance criteria covering all registrations and public call sites; this remains actionable API cleanup.
Remove unused route option type parameters (#620)
Remove unused route option type parameters (#620)
Remove unused route option type parameters (#620)
Remove unused route option type parameters (#620)
Remove unused route option type parameters (#620)
Remove unused route option type parameters (#620)
Remove unused route option type parameters (#620) (#736)