コード例 #1
0
ファイル: CNAME.cs プロジェクト: IMULMUL/DnsServer
        public Task InitializeAsync(IDnsServer dnsServer, string config)
        {
            if (_healthMonitor is null)
            {
                _healthMonitor = HealthMonitoringService.Create(dnsServer);
            }

            //let Address class initialize config

            return(Task.CompletedTask);
        }
コード例 #2
0
ファイル: Address.cs プロジェクト: IMULMUL/DnsServer
        public Task InitializeAsync(IDnsServer dnsServer, string config)
        {
            if (_healthMonitor is null)
            {
                _healthMonitor = HealthMonitoringService.Create(dnsServer);
            }

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

            return(Task.CompletedTask);
        }