public JwpListener(int listenerPort) { this.Port = listenerPort; this.commandExecutorsDispatcher = new ExecutorsDispatcher( typeof(CommandExecutorBase).Assembly, typeof(CommandExecutorBase)); }
private Automator() { this.socketServer = new SocketServer(this.RequestHandler); this.elementsRegistry = new ElementsRegistry(); this.windowsesRegistry = new WindowsRegistry(); this.Session = "AwesomeSession"; this.commandsExecutorsDispatcher = new ExecutorsDispatcher(typeof(CommandExecutorBase).GetTypeInfo().Assembly, typeof(CommandExecutorBase)); this.commandsExecutorsDispatcher.AddExecutor("ping", typeof(PingExecutor)); }