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