public FileChaosController(ResilientHttpClient client,
                            IOptions <MonitoringSettings> monitoringOptions,
                            IOptionsSnapshot <AppChaosSettings> chaosOptionsSnapshot,
                            ILogger <FileChaosController> logger)
 {
     this.client        = client;
     monitoringSettings = monitoringOptions.Value;
     chaosSettings      = chaosOptionsSnapshot.Value;
     _logger            = logger;
 }
 public DBChaosController(ApplicationDbContext context, IOptionsSnapshot <AppChaosSettings> chaosOptionsSnapshot, ILogger <DBChaosController> logger)
 {
     _context      = context;
     chaosSettings = chaosOptionsSnapshot.Value;
     _logger       = logger;
 }
예제 #3
0
 public MonitoringController(ResilientHttpClient client, IOptions <MonitoringSettings> monitoringOptions, IOptionsSnapshot <AppChaosSettings> chaosOptionsSnapshot)
 {
     this.client        = client;
     monitoringSettings = monitoringOptions.Value;
     chaosSettings      = chaosOptionsSnapshot.Value;
 }