Exemplo n.º 1
0
        private void AddTransitionAsObject <TEvent1>(Action <ITransitionBuilderWithTransition <TInternalState, object> > builder) where TEvent1 : class
        {
            var td            = _state.AddTransitionDefinitionToState <TEvent1, object>();
            var localbBuilder = new TransitionBuilder <TInternalState, object>(td, _lookup);

            builder(localbBuilder);
        }
Exemplo n.º 2
0
        public void When <TEvent>(Action <ITransitionBuilderWithTransition <TInternalState, TEvent> > builder)
            where TEvent : class
        {
            var transDefinition = _state.AddTransitionDefinitionToState <TEvent>();
            var localbBuilder   = new TransitionBuilder <TInternalState, TEvent>(transDefinition, _lookup);

            builder(localbBuilder);
        }