예제 #1
0
        public IStateMachine Create(IStorageConnection connection)
        {
            if (connection == null) throw new ArgumentNullException("connection");

            var process = new DefaultStateChangeProcess(_handlers);
            return new StateMachine(connection, process);
        }
예제 #2
0
        public IStateMachine Create(IStorageConnection connection)
        {
            if (connection == null)
            {
                throw new ArgumentNullException("connection");
            }

            var process = new DefaultStateChangeProcess(_handlers);

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