Class ActionControllerAttribute
- Namespace
- BpNexT.Actions.Abstractions
- Assembly
- BpNexT.Actions.Abstractions.dll
Marks a class besides the module as an action host, so endpoints can live in one class per
resource — typically subclasses of a shared generic base. The id prefixes every contained
action id ({id}-{actionId}) and Route prefixes every [HttpRoute]
template, which lets the base class declare relative routes that specialize per subclass.
Controllers are dependency-injected per run exactly like the module; the module's lifecycle
hooks still run around their actions. [Main], [Service], and [OptionsProvider] remain
module-only.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class ActionControllerAttribute : Attribute
- Inheritance
-
objectActionControllerAttribute
- Inherited Members
-
object.ToString()
Constructors
- ActionControllerAttribute(string)
Marks a class besides the module as an action host, so endpoints can live in one class per resource — typically subclasses of a shared generic base. The id prefixes every contained action id (
{id}-{actionId}) and Route prefixes every [HttpRoute] template, which lets the base class declare relative routes that specialize per subclass. Controllers are dependency-injected per run exactly like the module; the module's lifecycle hooks still run around their actions. [Main], [Service], and [OptionsProvider] remain module-only.
Properties
- Id
Prefix for every action id inside the controller (
{id}-{actionId}).
- Route
Route prefix for the controller's [HttpRoute] templates, e.g.
Artikel.