From de35b35d7b4a2c82fae4fd86449c73fabc8907f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E4=B9=9D?= <366193849@qq.com> Date: Wed, 8 Sep 2021 19:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=87=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{DnsHostedService.cs => DnsOverUdpHostedService.cs} | 8 ++++---- FastGithub.Dns/ServiceCollectionExtensions.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename FastGithub.Dns/{DnsHostedService.cs => DnsOverUdpHostedService.cs} (92%) diff --git a/FastGithub.Dns/DnsHostedService.cs b/FastGithub.Dns/DnsOverUdpHostedService.cs similarity index 92% rename from FastGithub.Dns/DnsHostedService.cs rename to FastGithub.Dns/DnsOverUdpHostedService.cs index e9beb03..d452941 100644 --- a/FastGithub.Dns/DnsHostedService.cs +++ b/FastGithub.Dns/DnsOverUdpHostedService.cs @@ -11,11 +11,11 @@ namespace FastGithub.Dns /// /// dns后台服务 /// - sealed class DnsHostedService : BackgroundService + sealed class DnsOverUdpHostedService : BackgroundService { private readonly DnsOverUdpServer dnsOverUdpServer; private readonly IEnumerable conflictValidators; - private readonly ILogger logger; + private readonly ILogger logger; /// /// dns后台服务 @@ -23,10 +23,10 @@ namespace FastGithub.Dns /// /// /// - public DnsHostedService( + public DnsOverUdpHostedService( DnsOverUdpServer dnsOverUdpServer, IEnumerable conflictValidators, - ILogger logger) + ILogger logger) { this.dnsOverUdpServer = dnsOverUdpServer; this.conflictValidators = conflictValidators; diff --git a/FastGithub.Dns/ServiceCollectionExtensions.cs b/FastGithub.Dns/ServiceCollectionExtensions.cs index f3d26d6..1205a86 100644 --- a/FastGithub.Dns/ServiceCollectionExtensions.cs +++ b/FastGithub.Dns/ServiceCollectionExtensions.cs @@ -21,7 +21,7 @@ namespace FastGithub services.TryAddSingleton(); services.AddSingleton(); services.AddSingleton(); - return services.AddHostedService(); + return services.AddHostedService(); } } }