public void Initialize()
        {
            try
            {
                var connectionStringConfigModel = new ConnectionStringConfigModel
                {
                    MySqlConnectionString = "mysqlconnectionstring",
                    RedisConnectionString = "redisconnectionstring"
                };
                this.ConfigurationReader = new ConfigurationReader("SERVICE-A", connectionStringConfigModel, 100);

                this.ConfigurationBusiness = new ConfigurationBusiness(new ConfigurationRepository(connectionStringConfigModel.MySqlConnectionString));
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);

                throw;
            }
        }
Exemple #2
0
 public ConfigurationController(IConfigurationBusiness configurationBusiness)
 {
     this.configurationBusiness = configurationBusiness;
 }