Ejemplo n.º 1
0
 /// <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);
Ejemplo n.º 2
0
 public static string GetRoute <THub>(string basePath = null) where THub : BaseHub =>
 HubAttribute.GetRoute(basePath ?? HubAttribute.BASE_PATH, typeof(THub));