类型重命名
This commit is contained in:
parent
19bd5550ad
commit
de35b35d7b
@ -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;
|
||||
@ -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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user