Class SagaStepAttribute
- Namespace
- PatternKit.Generators.Messaging
- Assembly
- PatternKit.Generators.Abstractions.dll
Marks a static method as a generated saga step.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class SagaStepAttribute : Attribute
- Inheritance
-
SagaStepAttribute
- Inherited Members
Constructors
SagaStepAttribute(Type, int)
Creates a saga step attribute.
public SagaStepAttribute(Type messageType, int order)
Parameters
Properties
MessageType
Message payload type handled by this step.
public Type MessageType { get; }
Property Value
Order
Step order in the generated saga builder.
public int Order { get; }