public void Accept(StateMachineInspector inspector)
        {
            Initial.Accept(inspector);

            _stateCache.Each(x =>
            {
                if (Equals(x, Initial) || Equals(x, Final))
                {
                    return;
                }

                x.Accept(inspector);
            });

            Final.Accept(inspector);
        }
Exemplo n.º 2
0
        void Visitable.Accept(StateMachineVisitor visitor)
        {
            Initial.Accept(visitor);

            foreach (var x in _stateCache.Values)
            {
                if (Equals(x, Initial) || Equals(x, Final))
                {
                    continue;
                }

                x.Accept(visitor);
            }

            Final.Accept(visitor);
        }
        public void Accept(StateMachineInspector inspector)
        {
            Initial.Accept(inspector);

            _stateCache.Each(x =>
            {
                if (x == Initial || x == Final)
                {
                    return;
                }

                x.Accept(inspector);
            });

            Final.Accept(inspector);
        }