public Task InitializeAsync(IDnsServer dnsServer, string config) { if (_healthMonitor is null) { _healthMonitor = HealthMonitoringService.Create(dnsServer); } //let Address class initialize config return(Task.CompletedTask); }
public Task InitializeAsync(IDnsServer dnsServer, string config) { if (_healthMonitor is null) { _healthMonitor = HealthMonitoringService.Create(dnsServer); } _healthMonitor.Initialize(JsonConvert.DeserializeObject(config)); return(Task.CompletedTask); }