Interface IStateMachineActivity<TSaga, TMessage>
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
An activity is part of a behavior that is executed in order
public interface IStateMachineActivity<TSaga, TMessage> : IStateMachineActivity, IVisitable, IProbeSite where TSaga : class, ISaga where TMessage : class
Type Parameters
TSaga
TMessage
- Inherited Members
Methods
Execute(BehaviorContext<TSaga, TMessage>, IBehavior<TSaga, TMessage>)
Execute the activity with the given behavior context
Task Execute(BehaviorContext<TSaga, TMessage> context, IBehavior<TSaga, TMessage> next)
Parameters
context
BehaviorContext<TSaga, TMessage>The behavior context
next
IBehavior<TSaga, TMessage>The behavior that follows this activity
Returns
- Task
An awaitable task
Faulted<TException>(BehaviorExceptionContext<TSaga, TMessage, TException>, IBehavior<TSaga, TMessage>)
The exception path through the behavior allows activities to catch and handle exceptions
Task Faulted<TException>(BehaviorExceptionContext<TSaga, TMessage, TException> context, IBehavior<TSaga, TMessage> next) where TException : Exception
Parameters
context
BehaviorExceptionContext<TSaga, TMessage, TException>next
IBehavior<TSaga, TMessage>
Returns
Type Parameters
TException