Ejemplo n.º 1
0
        public IStateMachine Create(IStorageConnection connection)
        {
            if (connection == null) throw new ArgumentNullException("connection");

            var process = new DefaultStateChangeProcess(_handlers);
            return new StateMachine(connection, process);
        }
Ejemplo n.º 2
0
        public IStateMachine Create(IStorageConnection connection)
        {
            if (connection == null)
            {
                throw new ArgumentNullException("connection");
            }

            var process = new DefaultStateChangeProcess(_handlers);

            return(new StateMachine(connection, process));
        }