using FastGithub.DnscryptProxy;
using Microsoft.Extensions.DependencyInjection;
namespace FastGithub
{
///
/// DnscryptProxy的服务注册扩展
///
public static class DnscryptProxyServiceCollectionExtensions
{
///
/// 添加DnscryptProxy
///
///
///
public static IServiceCollection AddDnscryptProxy(this IServiceCollection services)
{
return services
.AddSingleton()
.AddHostedService();
}
}
}