Table of Contents

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

stateType Type

Properties

AsyncFactoryName

Name of the generated async factory method.

public string AsyncFactoryName { get; set; }

Property Value

string

FactoryName

Name of the generated sync factory method.

public string FactoryName { get; set; }

Property Value

string

StateType

Saga state type processed by generated factories.

public Type StateType { get; }

Property Value

Type