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