Path: redb-route/redb.Route/Core/ConnectionParameterAttribute.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/ConnectionParameterAttribute.cs ---- namespace redb.Route.Core; /// /// Declares that a named connection factory sets this option: it describes the connection (host, credentials, TLS, /// timeouts), not the endpoint. A factory is the whole connection, as in Camel ("all connection options set on URI are /// not used"), so this option written in a URI beside the factory /// reference would be ignored and send the route elsewhere than written; the core refuses it when the options are /// bound (). Tooling reads the declaration by reflection. /// [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)] public sealed class ConnectionParameterAttribute : Attribute; /// /// Marks the option that names a registered connection factory (usually connectionFactory). An options type /// that declares options declares exactly one of these: the core does not /// guess which option names the factory. It is a too: the value names a /// registry object. /// /// The type the registry object must have, or null when the option does not say. [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)] public sealed class ConnectionFactoryReferenceAttribute(Type? expected = null) : RegistryReferenceAttribute(expected); /// /// Declares that the option's value names an object in the context registry (connectionFactory=main, /// headerFilterStrategy=#filter; the # is optional, the lookup strips it). The engine resolves the name /// where the endpoint is built; tooling reads the declaration by reflection: the component catalog writes it as the /// option's reference, and the package gate holds the name against the beans the package declares. /// /// The type the registry object must have, or null when the option does not say. [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)] public class RegistryReferenceAttribute(Type? expected = null) : Attribute { /// The type the registry object must have, or null when the option does not say. public Type? Expected { get; } = expected; }