Path: redb-route/redb.Route/Core/OptionGroupAttribute.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/OptionGroupAttribute.cs
----
namespace redb.Route.Core;
///
/// Marks an endpoint option as a group of options, written group.member=value on the URI: Apache Camel's prefixed
/// options, such as the mail component's searchTerm.subject=.... The property's type is a class with a public
/// parameterless constructor whose public settable properties are the members; the binder creates the group when the
/// URI names one of them. A member the group does not have is refused when the endpoint is created, naming the group and
/// its members. A [] member is masked as group.member.
///
[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public sealed class OptionGroupAttribute : Attribute;
///
/// Marks the one member of an option group that the bare group=value binds:
/// Camel's searchTerm=#bean beside searchTerm.subject=.... Without such a member the bare name is refused.
///
[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public sealed class OptionGroupValueAttribute : Attribute;