using Foxchat.Core.Middleware; using Foxchat.Identity.Middleware; namespace Foxchat.Identity.Extensions; public static class WebApplicationExtensions { public static IServiceCollection AddCustomMiddleware(this IServiceCollection services) { return services .AddScoped() .AddScoped() .AddScoped(); } public static IApplicationBuilder UseCustomMiddleware(this IApplicationBuilder app) { return app .UseMiddleware() .UseMiddleware() .UseMiddleware(); } }