public static ExchangeConfiguration GetInstance(string path) { ExchangeConfiguration self = new ExchangeConfiguration(); self.LoadConfiguration(path, null); return(self); }
public static TableMapping GetTableMapping(string path, string tableID) { if (string.IsNullOrEmpty(path)) { return(null); } if (string.IsNullOrEmpty(tableID) || tableID == "0") { return(null); } ExchangeConfiguration self = new ExchangeConfiguration(); self.LoadConfiguration(path, tableID); return(self[tableID]); }