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