Esempio 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);
        }
Esempio 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));
        }