Example #1
0
        public static ExchangeConfiguration GetInstance(string path)
        {
            ExchangeConfiguration self = new ExchangeConfiguration();

            self.LoadConfiguration(path, null);
            return(self);
        }
Example #2
0
        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]);
        }