Esempio n. 1
0
        public FileHandler(ConfigurationClearSale pathClearSaleFtp, string pathSas)
        {
            this.pathClearSaleFtp = pathClearSaleFtp;
            this.pathSas          = pathSas;

            ftp = new FtpClient(pathClearSaleFtp.uriClearSaleFtp, pathClearSaleFtp.userClearSaleFtp, pathClearSaleFtp.passClearSaleFtp, pathSas);
        }
Esempio n. 2
0
        private static void LoadConfigurationApplication()
        {
            try
            {
                pathClearSaleFtp  = Configuration["ClearSaleFTPSettings:uri"];
                userClearSaleFtp  = Configuration["ClearSaleFTPSettings:user"];
                passClearSaleFtp  = Configuration["ClearSaleFTPSettings:pass"];
                aplicationLogName = Configuration["AplicationLog:value"];

                pathSas = Configuration["SasSettings:path"];


                Log.PutEventLog("Carregando configurações da aplicação", aplicationLogName, "Application");

                credencialsClearSale = new ConfigurationClearSale(pathClearSaleFtp, portClearSaleFtp, userClearSaleFtp, passClearSaleFtp);

                Log.PutEventLog("Configurações da aplicação carregadas com sucesso!", aplicationLogName, "Application");
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }