public FileHandler(ConfigurationClearSale pathClearSaleFtp, string pathSas) { this.pathClearSaleFtp = pathClearSaleFtp; this.pathSas = pathSas; ftp = new FtpClient(pathClearSaleFtp.uriClearSaleFtp, pathClearSaleFtp.userClearSaleFtp, pathClearSaleFtp.passClearSaleFtp, pathSas); }
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); } }