Bewerken

Delen via


JournaledGrain<TGrainState,TEventBase>.TransitionState Method

Definition

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.

Applies to