Struct FSMBase.Event<TD>
All messages sent to the FSM<TState, TData> will be wrapped inside an FSMBase.Event<TD>, which allows pattern matching to extract both state and data.
Implements
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public readonly struct Event<TD> : INoSerializationVerificationNeeded
Type Parameters
Name | Description |
---|---|
TD | The state data for this event |
Constructors
| Improve this Doc View SourceEvent(Object, TD)
Initializes a new instance of the Event
Declaration
public Event(object fsmEvent, TD stateData)
Parameters
Type | Name | Description |
---|---|---|
Object | fsmEvent | The message received by the FSM. |
TD | stateData | The current state data of the FSM. |
Properties
| Improve this Doc View SourceFsmEvent
The message received by the FSM.
Declaration
public readonly object FsmEvent { get; }
Property Value
Type | Description |
---|---|
Object |
StateData
The current state data of the FSM.
Declaration
public readonly TD StateData { get; }
Property Value
Type | Description |
---|---|
TD |
Methods
| Improve this Doc View SourceToString()
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String |