Example #1
0
 public PostWatchdogService(IWatchdogStatusPutter watchdogStatusPutter, IOptions <WatchdogStatus> watchdogStatus, IOptions <PodIdentifierOptions> podIdentifier, ILogger <PostWatchdogService> logger)
 {
     this.watchdogStatusPutter = watchdogStatusPutter;
     this.status = watchdogStatus;
     this.pod    = podIdentifier;
     this.logger = logger;
 }
Example #2
0
 public WatchdogProber(IAutoCraneConfig config, ILoggerFactory loggerFactory, IPodGetter podGetter, IWatchdogStatusPutter watchdogStatusPutter)
 {
     this.config               = config;
     this.podGetter            = podGetter;
     this.watchdogStatusPutter = watchdogStatusPutter;
     this.logger               = loggerFactory.CreateLogger <WatchdogProber>();
     this.httpClient           = new HttpClient();
 }