public void Entry(ITransitionContext <TState, TEvent> context) { Ensure.ArgumentNotNull(context, "context"); context.AddRecord(this.Id, RecordType.Enter); this.ExecuteEntryActions(context); }
public void Entry(ITransitionContext <TState, TEvent> context) { Guard.AgainstNullArgument("context", context); context.AddRecord(this.Id, RecordType.Enter); this.ExecuteEntryActions(context); }
public void Exit(ITransitionContext <TState, TEvent> context) { Ensure.ArgumentNotNull(context, "context"); context.AddRecord(this.Id, RecordType.Exit); this.ExecuteExitActions(context); this.SetThisStateAsLastStateOfSuperState(); }
public void Exit(ITransitionContext <TState, TEvent> context) { Guard.AgainstNullArgument("context", context); context.AddRecord(this.Id, RecordType.Exit); this.ExecuteExitActions(context); this.SetThisStateAsLastStateOfSuperState(); }
public void Exit( IStateDefinition <TState, TEvent> stateDefinition, ITransitionContext <TState, TEvent> context, ILastActiveStateModifier <TState> lastActiveStateModifier) { Guard.AgainstNullArgument("context", context); context.AddRecord(stateDefinition.Id, RecordType.Exit); this.ExecuteExitActions(stateDefinition, context); SetThisStateAsLastStateOfSuperState(stateDefinition, lastActiveStateModifier); }
public async Task Exit( IStateDefinition <TState, TEvent> stateDefinition, ITransitionContext <TState, TEvent> context, ILastActiveStateModifier <TState, TEvent> lastActiveStateModifier) { Guard.AgainstNullArgument("context", context); context.AddRecord(stateDefinition.Id, RecordType.Exit); await this.ExecuteExitActions(stateDefinition, context).ConfigureAwait(false); this.SetThisStateAsLastStateOfSuperState(stateDefinition, lastActiveStateModifier); }
public async Task Entry( IStateDefinition <TState, TEvent> stateDefinition, ITransitionContext <TState, TEvent> context) { Guard.AgainstNullArgument("context", context); context.AddRecord(stateDefinition.Id, RecordType.Enter); await this.extensionHost.ForEach( extension => extension.EnteringState(stateDefinition, context)); await this.ExecuteEntryActions(stateDefinition, context).ConfigureAwait(false); }
public void Entry( IStateDefinition <TState, TEvent> stateDefinition, ITransitionContext <TState, TEvent> context) { Guard.AgainstNullArgument("context", context); context.AddRecord(stateDefinition.Id, RecordType.Enter); this.extensionHost.ForEach( extension => extension.EnteringState(stateDefinition, context)); this.ExecuteEntryActions(stateDefinition, context); }
public void Entry(ITransitionContext <TState, TEvent> context) { Guard.AgainstNullArgument("context", context); context.AddRecord(this.Id, RecordType.Enter); this.extensionHost .ForEach(extension => extension.EnteringState( this.stateMachineInformation, this, context)); this.ExecuteEntryActions(context); }