using FastGithub.ReverseProxy; using Microsoft.Extensions.DependencyInjection; namespace FastGithub { /// /// gitub反向代理的服务注册扩展 /// public static class ReverseProxyServiceCollectionExtensions { /// /// gitub反向代理 /// /// /// public static IServiceCollection AddGithubReverseProxy(this IServiceCollection services) { return services .AddMemoryCache() .AddHttpForwarder() .AddSingleton() .AddTransient(); } } }