类型重命名
This commit is contained in:
parent
19bd5550ad
commit
de35b35d7b
@ -11,11 +11,11 @@ namespace FastGithub.Dns
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// dns后台服务
|
/// dns后台服务
|
||||||
/// </summary>
|
/// </summary>
|
||||||
sealed class DnsHostedService : BackgroundService
|
sealed class DnsOverUdpHostedService : BackgroundService
|
||||||
{
|
{
|
||||||
private readonly DnsOverUdpServer dnsOverUdpServer;
|
private readonly DnsOverUdpServer dnsOverUdpServer;
|
||||||
private readonly IEnumerable<IConflictValidator> conflictValidators;
|
private readonly IEnumerable<IConflictValidator> conflictValidators;
|
||||||
private readonly ILogger<DnsHostedService> logger;
|
private readonly ILogger<DnsOverUdpHostedService> logger;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// dns后台服务
|
/// dns后台服务
|
||||||
@ -23,10 +23,10 @@ namespace FastGithub.Dns
|
|||||||
/// <param name="dnsOverUdpServer"></param>
|
/// <param name="dnsOverUdpServer"></param>
|
||||||
/// <param name="conflictValidators"></param>
|
/// <param name="conflictValidators"></param>
|
||||||
/// <param name="logger"></param>
|
/// <param name="logger"></param>
|
||||||
public DnsHostedService(
|
public DnsOverUdpHostedService(
|
||||||
DnsOverUdpServer dnsOverUdpServer,
|
DnsOverUdpServer dnsOverUdpServer,
|
||||||
IEnumerable<IConflictValidator> conflictValidators,
|
IEnumerable<IConflictValidator> conflictValidators,
|
||||||
ILogger<DnsHostedService> logger)
|
ILogger<DnsOverUdpHostedService> logger)
|
||||||
{
|
{
|
||||||
this.dnsOverUdpServer = dnsOverUdpServer;
|
this.dnsOverUdpServer = dnsOverUdpServer;
|
||||||
this.conflictValidators = conflictValidators;
|
this.conflictValidators = conflictValidators;
|
||||||
@ -21,7 +21,7 @@ namespace FastGithub
|
|||||||
services.TryAddSingleton<DnsOverHttpsMiddleware>();
|
services.TryAddSingleton<DnsOverHttpsMiddleware>();
|
||||||
services.AddSingleton<IConflictValidator, HostsConflictValidator>();
|
services.AddSingleton<IConflictValidator, HostsConflictValidator>();
|
||||||
services.AddSingleton<IConflictValidator, ProxyConflictValidtor>();
|
services.AddSingleton<IConflictValidator, ProxyConflictValidtor>();
|
||||||
return services.AddHostedService<DnsHostedService>();
|
return services.AddHostedService<DnsOverUdpHostedService>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user