Esempio n. 1
0
 public CommandsController(ServerContext context)
 {
     _context = context ?? new ServerContext();
     _resolver = new CommandResolver(_context);
     _runner = new CommandRunner(_context);
     _executor = new CommandsExecutor(_context);
 }
Esempio n. 2
0
 public CommandsService(ServerContext context = null)
 {
     _context = context ?? new ServerContext();
     _resolver = new CommandResolver(_context);
     _runner = new CommandRunner(_context);
     _executor = new CommandsExecutor(_context);
 }