added unified signalr hub

This commit is contained in:
Flaminel
2025-05-28 19:01:54 +03:00
parent f5fe9405cd
commit 62fc39251b
9 changed files with 406 additions and 75 deletions

View File

@@ -2,6 +2,7 @@ using System.Text.Json.Serialization;
using Infrastructure.Health;
using Infrastructure.Logging;
using Infrastructure.Events;
using Infrastructure.Hubs;
using Microsoft.OpenApi.Models;
namespace Executable.DependencyInjection;
@@ -73,8 +74,13 @@ public static class ApiDI
// Map SignalR hubs
app.MapHub<HealthStatusHub>("/api/hubs/health");
// Legacy hubs (for backward compatibility)
app.MapHub<LogHub>("/api/hubs/logs");
app.MapHub<EventHub>("/api/hubs/events");
// New unified hub
app.MapHub<AppHub>("/api/hubs/app");
return app;
}