Class GenerateControlBusAttribute
- Namespace
- PatternKit.Generators.Messaging
- Assembly
- PatternKit.Generators.Abstractions.dll
Generates a typed control bus factory for a partial class or struct.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
public sealed class GenerateControlBusAttribute : Attribute
- Inheritance
-
GenerateControlBusAttribute
- Inherited Members
Constructors
GenerateControlBusAttribute(Type)
Creates a control bus generator attribute.
public GenerateControlBusAttribute(Type commandType)
Parameters
commandTypeType
Properties
BusName
Name assigned to the generated control bus.
public string BusName { get; set; }
Property Value
CommandType
Command type dispatched by the generated control bus.
public Type CommandType { get; }
Property Value
FactoryName
Name of the generated factory method.
public string FactoryName { get; set; }