public CommandCenter(string directory, CommandServices commandServices, ScriptEngine pythonEngine) { _directory = directory; _commandServices = commandServices; _pythonEngine = pythonEngine; _logger = LogManager.GetLogger("commands"); _pythonCommands = new Dictionary<string, List<ICommand>>(); LoadCSharpCommands(); LoadPythonCommands(); InitializeFileWatcher(); _commandServices.CommandCenter = this; }
private void InitializeCommands() { Services = new CommandServices(this, _stepDirectory); _commandCenter = new CommandCenter(FindPathForDirectory("commands"), Services, _engine); }