Ejemplo n.º 1
0
 private void DoTask(object fileName)
 {
     try
     {
         RateFileReader  rateFileReader = new RateFileReader();
         List <RateItem> rateItems      = rateFileReader.Read(fileName.ToString());
         ExcelApp.Instance.Write(rateItems);
     }
     catch (Exception e)
     {
         LogManager.Instance.PutMessage("Error: " + e.Message);
     }
 }
Ejemplo n.º 2
0
 private void DoTask(object fileName)
 {
     try
     {
         RateFileReader rateFileReader = new RateFileReader();
         List<RateItem> rateItems = rateFileReader.Read(fileName.ToString());
         ExcelApp.Instance.Write(rateItems);
     }
     catch (Exception e)
     {
         LogManager.Instance.PutMessage("Error: " + e.Message);
     }
 }
Ejemplo n.º 3
0
        private void DoTask(object fileName)
        {
            try
            {
                Monitor.TryEnter(sync1, 1000);
                RateFileReader rateFileReader = new RateFileReader();
                List<RateItem> rateItems = rateFileReader.Read(fileName.ToString());

                ExcelApp.Instance.Write(rateItems, index++);
            }
            catch (Exception e)
            {
                LogManager.Instance.PutMessage("ConvertTask.DoTask:> Error: " + e.Message);
            }
            finally
            {
                Monitor.Exit(sync1);
            }
        }
Ejemplo n.º 4
0
        private void DoTask(object fileName)
        {
            try
            {
                Monitor.TryEnter(sync1, 1000);
                RateFileReader  rateFileReader = new RateFileReader();
                List <RateItem> rateItems      = rateFileReader.Read(fileName.ToString());

                ExcelApp.Instance.Write(rateItems, index++);
            }
            catch (Exception e)
            {
                LogManager.Instance.PutMessage("ConvertTask.DoTask:> Error: " + e.Message);
            }
            finally
            {
                Monitor.Exit(sync1);
            }
        }