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; }
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(); }