コード例 #1
0
        public StateMachineEventActivitiesBuilder <TInstance> Initially()
        {
            var builder = new InternalStateMachineEventActivitiesBuilder <TInstance>(_machine, this,
                                                                                     activities => _machine.Initially(activities));

            _activityBuilders.Add(builder);
            return(builder);
        }
コード例 #2
0
        public StateMachineEventActivitiesBuilder <TInstance> During(params State[] states)
        {
            var builder = new InternalStateMachineEventActivitiesBuilder <TInstance>(_machine, this,
                                                                                     activities => _machine.During(states, activities));

            _activityBuilders.Add(builder);
            return(builder);
        }