/// <summary> /// Maps hubs tagged by the <see cref="HubAttribute"/>. /// </summary> /// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/> to map into.</param> public static void MapEllersoftSignalR(this IEndpointRouteBuilder endpoints) => HubAttribute.RegisterEndpoints(endpoints);
public static string GetRoute <THub>(string basePath = null) where THub : BaseHub => HubAttribute.GetRoute(basePath ?? HubAttribute.BASE_PATH, typeof(THub));