Class GenerateSagaAttribute
- Namespace
- PatternKit.Generators.Messaging
- Assembly
- PatternKit.Generators.Abstractions.dll
Generates typed factory methods for a saga/process manager class.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
public sealed class GenerateSagaAttribute : Attribute
- Inheritance
-
GenerateSagaAttribute
- Inherited Members
Constructors
GenerateSagaAttribute(Type)
Creates a saga generator attribute.
public GenerateSagaAttribute(Type stateType)
Parameters
stateTypeType
Properties
AsyncFactoryName
Name of the generated async factory method.
public string AsyncFactoryName { get; set; }
Property Value
FactoryName
Name of the generated sync factory method.
public string FactoryName { get; set; }
Property Value
StateType
Saga state type processed by generated factories.
public Type StateType { get; }