Table of Contents

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

commandName string
handlerName string
order int

Properties

CommandName

Operational command name.

public string CommandName { get; }

Property Value

string

HandlerName

Handler name used in result metadata.

public string HandlerName { get; }

Property Value

string

Order

Registration order in generated source.

public int Order { get; }

Property Value

int