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