/// <summary>
 /// To destroy the objects by implementing IDisposable interface method
 /// </summary>
 public void Dispose()
 {
     if (_validationErrMsgs != null)
     {
         _validationErrMsgs.Clear();
     }
     if (_validationErrMsgs != null)
     {
         _appXsd.Clear();
     }
     _validationErrMsgs = null;
     _dataImportSetting = null;
     _dbHelper          = null;
     _log          = null;
     _appXsd       = null;
     _xsdValidator = null;
 }
        public CallDataImporation(Dictionary <string, string> importSettings, log4net.ILog log)
        {
            _validationErrMsgs = new List <string>();
            _appXsd            = new Dictionary <string, string>();
            _xsdValidator      = new CallDataValidator();

            _log = log;
            _isDebugLogEnabled     = _log.IsDebugEnabled;
            _dataImportSetting     = System.Configuration.ConfigurationManager.GetSection("DataImportSettings") as DataImportSettings;
            _applicationName       = importSettings["ApplicationName"];
            _applicationServer     = importSettings["ApplicationServer"];
            _applicationThreadName = importSettings["ApplicationThreadName"];
            _dbHelper   = new DBHelper(importSettings["ConnectionString"], Convert.ToInt32(importSettings["CommandTimeout"]));
            _msmqHelper = new MsmqHelper(importSettings["QueueName"]);

            this.LoadApplicationSchema();
        }