Class ControlBusCommandAttribute
- Namespace
- PatternKit.Generators.Messaging
- Assembly
- PatternKit.Generators.Abstractions.dll
Marks a static method as a generated control bus command handler.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class ControlBusCommandAttribute : Attribute
- Inheritance
-
ControlBusCommandAttribute
- Inherited Members
Constructors
ControlBusCommandAttribute(string, string, int)
Creates a control bus command attribute.
public ControlBusCommandAttribute(string commandName, string handlerName, int order = 0)
Parameters
Properties
CommandName
Operational command name.
public string CommandName { get; }
Property Value
HandlerName
Handler name used in result metadata.
public string HandlerName { get; }
Property Value
Order
Registration order in generated source.
public int Order { get; }