예제 #1
0
 public ServiceAlarmTasks(
     IAlarmLogger logger,
     ResourceNamePopulator <T> populator,
     ServiceAlarmGenerator <T> generator,
     OrphanResourcesReporter <T> orphansReporter,
     Func <WatchmanConfiguration, WatchmanServiceConfiguration> serviceConfigMapper)
 {
     _populator           = populator;
     _generator           = generator;
     _orphansReporter     = orphansReporter;
     _serviceConfigMapper = serviceConfigMapper;
     _logger = logger;
 }
예제 #2
0
 public ServiceAlarmTasks(
     IAlarmLogger logger,
     ResourceNamePopulator <T, TAlarmConfig> populator,
     OrphanResourcesReporter <T> orphansReporter,
     IAlarmCreator creator,
     ResourceAlarmGenerator <T, TAlarmConfig> resourceAlarmGenerator,
     Func <WatchmanConfiguration, WatchmanServiceConfiguration <TAlarmConfig> > serviceConfigMapper)
 {
     _populator              = populator;
     _orphansReporter        = orphansReporter;
     _creator                = creator;
     _resourceAlarmGenerator = resourceAlarmGenerator;
     _serviceConfigMapper    = serviceConfigMapper;
     _logger = logger;
 }