Ejemplo n.º 1
0
 /// <summary>
 /// Maps incoming requests with the specified path to the provided connection pipeline.
 /// </summary>
 /// <typeparam name="TConnectionHandler">The <see cref="ConnectionHandler"/> type.</typeparam>
 /// <param name="endpoints">The <see cref="IEndpointBuilder"/> to add the route to.</param>
 /// <param name="pattern">The route pattern.</param>
 /// <returns>An <see cref="ConnectionEndpointRouteBuilder"/> for endpoints associated with the connections.</returns>
 public static ConnectionEndpointRouteBuilder MapConnectionHandler <TConnectionHandler>(this IEndpointBuilder endpoints, string pattern) where TConnectionHandler : ConnectionHandler =>
 endpoints.MapConnectionHandler <TConnectionHandler>(pattern, configureOptions : null);