FSM<(Of <(<'TS, TD>)>)>..::..When Method
Insert a new FSM<(Of <(<'TS, TD>)>)>..::..StateFunction at the end of the processing chain for the
given state. If the stateTimeout parameter is set, entering this state without a
differing explicit timeout setting will trigger a FSMBase..::..StateTimeout.
Namespace:
Akka.ActorAssembly: Akka (in Akka.dll)
Syntax
public void When( TS stateName, FSM<(Of <(<'TS, TD>)>)>..::..StateFunction func, Nullable<TimeSpan> timeout )
Public Sub When ( _ stateName As TS, _ func As FSM<(Of <(<'TS, TD>)>)>..::..StateFunction, _ timeout As Nullable(Of TimeSpan) _ )
public: void When( TS stateName, FSM<(Of <(<'TS, TD>)>)>..::..StateFunction^ func, Nullable<TimeSpan^> timeout )
Parameters
- stateName
- Type: TS
designator for the state
- func
- Type: Akka.Actor..::..FSM<(Of <(<'TS, TD>)>)>..::..StateFunction
delegate describing this state's response to input