类型重命名

This commit is contained in:
老九 2021-09-08 19:48:06 +08:00
parent 19bd5550ad
commit de35b35d7b
2 changed files with 5 additions and 5 deletions

View File

@ -11,11 +11,11 @@ namespace FastGithub.Dns
/// <summary>
/// dns后台服务
/// </summary>
sealed class DnsHostedService : BackgroundService
sealed class DnsOverUdpHostedService : BackgroundService
{
private readonly DnsOverUdpServer dnsOverUdpServer;
private readonly IEnumerable<IConflictValidator> conflictValidators;
private readonly ILogger<DnsHostedService> logger;
private readonly ILogger<DnsOverUdpHostedService> logger;
/// <summary>
/// dns后台服务
@ -23,10 +23,10 @@ namespace FastGithub.Dns
/// <param name="dnsOverUdpServer"></param>
/// <param name="conflictValidators"></param>
/// <param name="logger"></param>
public DnsHostedService(
public DnsOverUdpHostedService(
DnsOverUdpServer dnsOverUdpServer,
IEnumerable<IConflictValidator> conflictValidators,
ILogger<DnsHostedService> logger)
ILogger<DnsOverUdpHostedService> logger)
{
this.dnsOverUdpServer = dnsOverUdpServer;
this.conflictValidators = conflictValidators;

View File

@ -21,7 +21,7 @@ namespace FastGithub
services.TryAddSingleton<DnsOverHttpsMiddleware>();
services.AddSingleton<IConflictValidator, HostsConflictValidator>();
services.AddSingleton<IConflictValidator, ProxyConflictValidtor>();
return services.AddHostedService<DnsHostedService>();
return services.AddHostedService<DnsOverUdpHostedService>();
}
}
}