Table of Contents

Interface IStateMachineActivity<TSaga>

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll

An activity is part of a behavior that is executed in order

public interface IStateMachineActivity<TSaga> : IStateMachineActivity, IVisitable, IProbeSite where TSaga : class, ISaga

Type Parameters

TSaga
Inherited Members

Methods

Execute(BehaviorContext<TSaga>, IBehavior<TSaga>)

Execute the activity with the given behavior context

Task Execute(BehaviorContext<TSaga> context, IBehavior<TSaga> next)

Parameters

context BehaviorContext<TSaga>

The behavior context

next IBehavior<TSaga>

The behavior that follows this activity

Returns

Task

An awaitable task

Execute<T>(BehaviorContext<TSaga, T>, IBehavior<TSaga, T>)

Execute the activity with the given behavior context

Task Execute<T>(BehaviorContext<TSaga, T> context, IBehavior<TSaga, T> next) where T : class

Parameters

context BehaviorContext<TSaga, T>

The behavior context

next IBehavior<TSaga, T>

The behavior that follows this activity

Returns

Task

An awaitable task

Type Parameters

T

Faulted<TException>(BehaviorExceptionContext<TSaga, TException>, IBehavior<TSaga>)

The exception path through the behavior allows activities to catch and handle exceptions

Task Faulted<TException>(BehaviorExceptionContext<TSaga, TException> context, IBehavior<TSaga> next) where TException : Exception

Parameters

context BehaviorExceptionContext<TSaga, TException>
next IBehavior<TSaga>

Returns

Task

Type Parameters

TException

Faulted<T, TException>(BehaviorExceptionContext<TSaga, T, TException>, IBehavior<TSaga, T>)

The exception path through the behavior allows activities to catch and handle exceptions

Task Faulted<T, TException>(BehaviorExceptionContext<TSaga, T, TException> context, IBehavior<TSaga, T> next) where T : class where TException : Exception

Parameters

context BehaviorExceptionContext<TSaga, T, TException>
next IBehavior<TSaga, T>

Returns

Task

Type Parameters

T
TException