Table of Contents

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

commandType Type

Properties

BusName

Name assigned to the generated control bus.

public string BusName { get; set; }

Property Value

string

CommandType

Command type dispatched by the generated control bus.

public Type CommandType { get; }

Property Value

Type

FactoryName

Name of the generated factory method.

public string FactoryName { get; set; }

Property Value

string