public static void Load(string filename) { instance = ConfigManager.LoadConfig <TeleStorageData>(Assembly.GetExecutingAssembly().Location, Path.GetFileName(filename)); if (instance == null) { instance = new TeleStorageData(); } }
public static void Postfix(string filename) { Console.WriteLine("Consumed save event"); TeleStorageData.Save(filename); }