public BaseStateManager(string name) { this.StateFilePath = ONI_Common.Paths.GetStateFilePath(name); IOHelper.EnsureDirectoryExists(Paths.GetLogsPath()); this.Logger = new ONI_Common.IO.Logger(Paths.GetLogsPath() + System.IO.Path.DirectorySeparatorChar + name + "Log.txt"); this.JsonLoader = new JsonFileManager(new JsonManager(), Logger); }
// // public BaseStateManager(string configFileName, string logFilePath) { this.StateFilePath = configFileName; this.Logger = new ONI_Common.IO.Logger(logFilePath); this.JsonLoader = new JsonFileManager(new JsonManager(), Logger); }