JournaledGrain<TGrainState,TEventBase>.TransitionState Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines how to apply events to the state. Unless it is overridden in the subclass, it calls a dynamic "Apply" function on the state, with the event as a parameter. All exceptions thrown by this method are caught and logged by the log view provider.
Override this to customize how to transition the state for a given event.
protected virtual void TransitionState (TGrainState state, TEventBase event);
abstract member TransitionState : 'GrainState * 'EventBase -> unit
override this.TransitionState : 'GrainState * 'EventBase -> unit
Protected Overridable Sub TransitionState (state As TGrainState, event As TEventBase)
Parameters
- state
- TGrainState
The state.
- event
- TEventBase
The event.