Skip to content

Interface IRestBehaviorModuleBuilder

Namespace: Cephalon.Behaviors.Http.Hosting
Assembly: Cephalon.Behaviors.Http.dll

Collects behavior ownership and public REST exposure for a .

public interface IRestBehaviorModuleBuilder

Public REST behavior routes automatically imply module ownership. Use or when a module also owns internal-only behaviors or behaviors that will be exposed through a custom/manual route path.

Creates a REST route group that can map one or more behavior-backed endpoints.

IRestBehaviorEndpointGroupBuilder Group(string prefix)

prefix string

The public route prefix relative to the host REST root.

IRestBehaviorEndpointGroupBuilder

A builder used to describe the group’s public REST endpoints.

Creates a REST route group whose public path is derived from a dot-separated behavior-id prefix.

IRestBehaviorEndpointGroupBuilder GroupFromBehaviorIdPrefix(string behaviorIdPrefix)

behaviorIdPrefix string

The behavior-id prefix whose segments become the route-group path, such as showcase.cart becoming /showcase/cart.

IRestBehaviorEndpointGroupBuilder

A builder used to describe the group’s public REST endpoints.

Use this helper for the common generated-profile path where the public route group should mirror the owning behavior-id prefix while remaining an explicit module-owned REST surface.

Declares that the current REST-capable module owns the specified behavior as an internal or custom/manual-route behavior without exposing it through the default REST route builder.

IRestBehaviorModuleBuilder Internal<TBehavior>() where TBehavior : class

IRestBehaviorModuleBuilder

The same builder for fluent authoring.

TBehavior

The concrete behavior type owned by the module.

Internal<TBehavior>(Action<IBehaviorTopologyBuilder>)

Section titled “ Internal<TBehavior>(Action<IBehaviorTopologyBuilder>)”

Declares that the current REST-capable module owns the specified behavior as an internal or custom/manual-route behavior and applies an explicit topology override during registration.

IRestBehaviorModuleBuilder Internal<TBehavior>(Action<IBehaviorTopologyBuilder> configureTopology) where TBehavior : class

configureTopology Action<IBehaviorTopologyBuilder>

The explicit topology selection callback.

IRestBehaviorModuleBuilder

The same builder for fluent authoring.

TBehavior

The concrete behavior type owned by the module.

Maps matching generated REST profiles from the owning module assembly into one or more derived route groups.

IRestBehaviorModuleBuilder MapGeneratedProfileGroups(string behaviorIdPrefix)

behaviorIdPrefix string

The root behavior-id prefix used to select generated REST profiles from the owning module assembly.

IRestBehaviorModuleBuilder

The same builder for fluent authoring.

This broader low-code opt-in remains explicit and module-owned. Cephalon groups matching behavior ids by their parent prefix, so behaviors such as showcase.orders.lookup and showcase.orders.create share one derived route group while showcase.inventory.lookup lands in another. Use plus when each generated route group should still be declared manually.

MapGeneratedProfileGroups(string, Action<IRestBehaviorEndpointGroupBuilder>)

Section titled “ MapGeneratedProfileGroups(string, Action<IRestBehaviorEndpointGroupBuilder>)”

Maps matching generated REST profiles from the owning module assembly into one or more derived route groups while applying shared group-level conventions.

IRestBehaviorModuleBuilder MapGeneratedProfileGroups(string behaviorIdPrefix, Action<IRestBehaviorEndpointGroupBuilder> configureGroup)

behaviorIdPrefix string

The root behavior-id prefix used to select generated REST profiles from the owning module assembly.

configureGroup Action<IRestBehaviorEndpointGroupBuilder>

The optional callback applied to each derived route group before the generated profiles are mapped.

IRestBehaviorModuleBuilder

The same builder for fluent authoring.

MapGeneratedProfileGroups(string, Action<string, IRestBehaviorEndpointGroupBuilder>)

Section titled “ MapGeneratedProfileGroups(string, Action<string, IRestBehaviorEndpointGroupBuilder>)”

Maps matching generated REST profiles from the owning module assembly into one or more derived route groups while applying per-group conventions with awareness of each derived generated behavior-id prefix.

IRestBehaviorModuleBuilder MapGeneratedProfileGroups(string behaviorIdPrefix, Action<string, IRestBehaviorEndpointGroupBuilder> configureGroup)

behaviorIdPrefix string

The root behavior-id prefix used to select generated REST profiles from the owning module assembly.

configureGroup Action<string, IRestBehaviorEndpointGroupBuilder>

The callback applied to each derived route group before the generated profiles are mapped. The first argument is the derived behavior-id prefix for that route group, such as showcase.generated.orders.

IRestBehaviorModuleBuilder

The same builder for fluent authoring.