public IridiumToMySQL() { string dir = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); log = LogFile.getLog(dir); log.DirectoryType = DirFileType.YearMonthDir; LogFile.MaxLogsInQueue = 10; log.FileSize = 1024; config = ConfigFile.getConfigFile(); md = new MailsDatabase(dir); }
public static ConfigFile getConfigFile() { try { string name = config.ConfigName; } catch (Exception) { config = new ConfigFile(); } return config; }
public void Dispose() { config = null; log = null; }