using FastGithub.ReverseProxy;
using Microsoft.Extensions.DependencyInjection;
namespace FastGithub
{
///
/// https反向代理的服务注册扩展
///
public static class ServiceCollectionExtensions
{
///
/// 添加https反向代理
///
///
///
public static IServiceCollection AddReverseProxy(this IServiceCollection services)
{
return services
.AddMemoryCache()
.AddHttpForwarder()
.AddSingleton()
.AddSingleton()
.AddSingleton();
}
}
}