using Admin.NET.Core; using AspNetCoreRateLimit; using Furion; using Microsoft.Extensions.DependencyInjection; namespace Admin.NET.Web.Core; public static class ProjectOptions { /// /// 注册项目配置选项 /// /// /// public static IServiceCollection AddProjectOptions(this IServiceCollection services) { services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); //services.AddConfigurableOptions(); //services.AddConfigurableOptions(); //services.AddConfigurableOptions(); //services.AddConfigurableOptions(); services.Configure(App.Configuration.GetSection("IpRateLimiting")); services.Configure(App.Configuration.GetSection("IpRateLimitPolicies")); services.Configure(App.Configuration.GetSection("ClientRateLimiting")); services.Configure(App.Configuration.GetSection("ClientRateLimitPolicies")); return services; } }