Interface IRestBehaviorModuleBuilder
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Behaviors.Http.Hosting
Assembly: Cephalon.Behaviors.Http.dll
Collects behavior ownership and public REST exposure for a
public interface IRestBehaviorModuleBuilderRemarks
Section titled “Remarks”Public REST behavior routes automatically imply module ownership. Use
Methods
Section titled “Methods”Group(string)
Section titled “ Group(string)”Creates a REST route group that can map one or more behavior-backed endpoints.
IRestBehaviorEndpointGroupBuilder Group(string prefix)Parameters
Section titled “Parameters”prefix string
The public route prefix relative to the host REST root.
Returns
Section titled “Returns”IRestBehaviorEndpointGroupBuilder
A builder used to describe the group’s public REST endpoints.
GroupFromBehaviorIdPrefix(string)
Section titled “ GroupFromBehaviorIdPrefix(string)”Creates a REST route group whose public path is derived from a dot-separated behavior-id prefix.
IRestBehaviorEndpointGroupBuilder GroupFromBehaviorIdPrefix(string behaviorIdPrefix)Parameters
Section titled “Parameters”behaviorIdPrefix string
The behavior-id prefix whose segments become the route-group path, such as
showcase.cart becoming /showcase/cart.
Returns
Section titled “Returns”IRestBehaviorEndpointGroupBuilder
A builder used to describe the group’s public REST endpoints.
Remarks
Section titled “Remarks”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.
Internal<TBehavior>()
Section titled “ Internal<TBehavior>()”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 : classReturns
Section titled “Returns”The same builder for fluent authoring.
Type Parameters
Section titled “Type Parameters”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 : classParameters
Section titled “Parameters”configureTopology Action<IBehaviorTopologyBuilder>
The explicit topology selection callback.
Returns
Section titled “Returns”The same builder for fluent authoring.
Type Parameters
Section titled “Type Parameters”TBehavior
The concrete behavior type owned by the module.
MapGeneratedProfileGroups(string)
Section titled “ MapGeneratedProfileGroups(string)”Maps matching generated REST profiles from the owning module assembly into one or more derived route groups.
IRestBehaviorModuleBuilder MapGeneratedProfileGroups(string behaviorIdPrefix)Parameters
Section titled “Parameters”behaviorIdPrefix string
The root behavior-id prefix used to select generated REST profiles from the owning module assembly.
Returns
Section titled “Returns”The same builder for fluent authoring.
Remarks
Section titled “Remarks”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
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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”The same builder for fluent authoring.