Interface StateMachine
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
A state machine definition
public interface StateMachine : IVisitable, IProbeSite
- Inherited Members
Properties
Events
The events defined in the state machine
IEnumerable<Event> Events { get; }
Property Value
Final
The final state of a state machine instance
State Final { get; }
Property Value
Initial
The initial state of a new state machine instance
State Initial { get; }
Property Value
InstanceType
The instance type associated with the state machine
Type InstanceType { get; }
Property Value
Name
The name of the state machine (defaults to the state machine type name)
string Name { get; }
Property Value
States
The states defined in the state machine
IEnumerable<State> States { get; }
Property Value
Methods
GetEvent(string)
Returns the event requested
Event GetEvent(string name)
Parameters
name
string
Returns
GetState(string)
Returns the state requested
State GetState(string name)
Parameters
name
string
Returns
IsCompositeEvent(Event)
Returns true if the event is or is used by a composite event
bool IsCompositeEvent(Event @event)
Parameters
event
Event
Returns
NextEvents(State)
The valid events that can be raised during the specified state
IEnumerable<Event> NextEvents(State state)
Parameters
state
StateThe state to query
Returns
- IEnumerable<Event>
An enumeration of valid events