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