public ConfigurationModel() { this.ConnectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["DBConnection"].ConnectionString; this.UploadPath = System.Web.Configuration.WebConfigurationManager.AppSettings["TaskManager_UploadPath"].ToString(); this.RabbittMQ = new RabbittConfig(); this.RabbittMQ.ImportQueueName = System.Web.Configuration.WebConfigurationManager.AppSettings["TaskManager_RabbitMQ_Import_Queue"].ToString(); this.RabbittMQ.ExcelQueueName = System.Web.Configuration.WebConfigurationManager.AppSettings["TaskManager_RabbitMQ_Excel_Queue"].ToString(); this.RabbittMQ.Server = System.Web.Configuration.WebConfigurationManager.AppSettings["TaskManager_RabbitMQ_Server"].ToString(); this.TaskManager_ProccesFolder = System.Web.Configuration.WebConfigurationManager.AppSettings["TaskManager_ProccesFolder"].ToString(); this.TaskManager_ProccesFolder_Out = System.Web.Configuration.WebConfigurationManager.AppSettings["TaskManager_ProccesFolder_Out"].ToString(); }
public ConfigurationClass() { //this.ConnectionString = ConfigurationManager.ConnectionStrings["DBServer"].ToString(); this.ConnectionString = ConfigurationManager.ConnectionStrings["dbServer"].ToString(); this.RabbittMQ = new RabbittConfig(); this.RabbittMQ.ImportQueueName = ConfigurationManager.AppSettings["RabbitMQ_Import_Queue"].ToString(); this.RabbittMQ.ExcelQueueName = ConfigurationManager.AppSettings["RabbitMQ_Excel_Queue"].ToString(); this.RabbittMQ.Server = ConfigurationManager.AppSettings["RabbitMQ_Server"].ToString(); this.Paths = new PathsClass(); this.Paths.MainFolder = ConfigurationManager.AppSettings["ProccesFolder"].ToString(); this.Paths.InFolder = ConfigurationManager.AppSettings["ProccesFolder_in"].ToString(); this.Paths.OutFolder = ConfigurationManager.AppSettings["ProccesFolder_Out"].ToString(); this.Paths.TemplateFolder = ConfigurationManager.AppSettings["Template"].ToString(); this.LoadersDLLDirectory = ConfigurationManager.AppSettings["LoadersDLLDirectory"].ToString(); }
public ConfigurationClass() { //this.ConnectionString = ConfigurationManager.ConnectionStrings["DBServer"].ToString(); this.LogFilePath = ConfigurationManager.AppSettings["LogFilePath"].ToString(); this.LogFilePath = this.LogFilePath.Replace("%%date%%", DateTime.Now.ToString("yyyyMMdd_hhmmss")); this.ConnectionString = ConfigurationManager.AppSettings["db_ConnectionString"].ToString(); this.LocalInPath = ConfigurationManager.AppSettings["LocalPath"].ToString(); //this.LocalOutPath = ConfigurationManager.AppSettings["LocalOutPath"].ToString(); this.Recursive = Convert.ToBoolean(ConfigurationManager.AppSettings["Recursive"].ToString()); this.ExtensionFilter = ConfigurationManager.AppSettings["ExtensionFilter"].ToString(); this.RabbittMQ = new RabbittConfig(); this.RabbittMQ.ImportQueueName = ConfigurationManager.AppSettings["RabbitMQ_Import_Queue"].ToString(); this.RabbittMQ.ExcelQueueName = ConfigurationManager.AppSettings["RabbitMQ_Excel_Queue"].ToString(); this.RabbittMQ.Server = ConfigurationManager.AppSettings["RabbitMQ_Server"].ToString(); }