Returns the TState.
Assembly: Epic.Prelude
Declaration Syntax
C# |
TState Get<TState>()
Generic Template Parameters
- TState
- Type of the state of interest.
Return Value
Value of the TState that was registered from previous visitors in the context.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException |
Thrown when the TState has not been found in the context.
|