Exemple #1
0
        public Task InitializeAsync(IDnsServer dnsServer, string config)
        {
            if (_healthMonitor is null)
            {
                _healthMonitor = HealthMonitoringService.Create(dnsServer);
            }

            //let Address class initialize config

            return(Task.CompletedTask);
        }
Exemple #2
0
        public Task InitializeAsync(IDnsServer dnsServer, string config)
        {
            if (_healthMonitor is null)
            {
                _healthMonitor = HealthMonitoringService.Create(dnsServer);
            }

            _healthMonitor.Initialize(JsonConvert.DeserializeObject(config));

            return(Task.CompletedTask);
        }