Skip to content

IJournaledStateManager.TryGetStateMachine(string, IStateMachine?)

TryGetStateMachine(string, IStateMachine?)

abstract
public abstract bool TryGetStateMachine(string name, out IStateMachine? stateMachine)
Attempts to retrieve a registered state machine.

Parameters

namestring
The state machine's stable identifier.
stateMachineIStateMachine?
The registered state machine, if found.

Returns

true if the state machine is registered; otherwise, false.