Пример #1
0
        public void Entry(ITransitionContext <TState, TEvent> context)
        {
            Ensure.ArgumentNotNull(context, "context");

            context.AddRecord(this.Id, RecordType.Enter);

            this.ExecuteEntryActions(context);
        }
Пример #2
0
        public void Entry(ITransitionContext <TState, TEvent> context)
        {
            Guard.AgainstNullArgument("context", context);

            context.AddRecord(this.Id, RecordType.Enter);

            this.ExecuteEntryActions(context);
        }
Пример #3
0
        public void Exit(ITransitionContext <TState, TEvent> context)
        {
            Ensure.ArgumentNotNull(context, "context");

            context.AddRecord(this.Id, RecordType.Exit);

            this.ExecuteExitActions(context);
            this.SetThisStateAsLastStateOfSuperState();
        }
Пример #4
0
        public void Exit(ITransitionContext <TState, TEvent> context)
        {
            Guard.AgainstNullArgument("context", context);

            context.AddRecord(this.Id, RecordType.Exit);

            this.ExecuteExitActions(context);
            this.SetThisStateAsLastStateOfSuperState();
        }
Пример #5
0
        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);
        }
Пример #6
0
        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);
        }
Пример #7
0
        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);
        }
Пример #8
0
        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);
        }
Пример #9
0
        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);
        }