Exemplo n.º 1
0
        public void Execute()
        {
            try
            {
                IImportService ImportService = new ImportService(
                    ConfigurationManager.ConnectionStrings["BaseContext"].ConnectionString,
                    ConfigurationManager.AppSettings["ftpAddress"],
                    ConfigurationManager.AppSettings["login"],
                    ConfigurationManager.AppSettings["password"],
                    ConfigurationManager.AppSettings["downloadPath"],
                    ConfigurationManager.AppSettings["csvSeparator"]
                    );

                ImportService.ImportFiles();
            }
            catch (Exception ex)
            {
                log.Error(ex.Message, ex);
            }
        }