using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
namespace ZB.MOM.WW.OtOpcUa.AdminUI.Hubs;
/// Extension methods for mapping OtOpcUa SignalR hubs to routes.
public static class HubRouteBuilderExtensions
{
///
/// Maps all OtOpcUa Admin UI SignalR hubs to their configured endpoints.
///
/// The endpoint route builder to register hubs on.
/// The same endpoint route builder, for chaining.
public static IEndpointRouteBuilder MapOtOpcUaHubs(this IEndpointRouteBuilder app)
{
app.MapHub(AlertHub.Endpoint);
app.MapHub(ScriptLogHub.Endpoint);
app.MapHub(DriverStatusHub.Endpoint);
return app;
}
}