HubRouteBuilder Class

Definition

Caution

This class is obsolete and will be removed in a future version. The recommended alternative is to use MapHub inside Microsoft.AspNetCore.Builder.UseEndpoints(...).

Maps incoming requests to Hub types.

This class is obsolete and will be removed in a future version. The recommended alternative is to use MapHub<THub> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).

public ref class HubRouteBuilder
public class HubRouteBuilder
[System.Obsolete("This class is obsolete and will be removed in a future version. The recommended alternative is to use MapHub<THub> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")]
public class HubRouteBuilder
type HubRouteBuilder = class
[<System.Obsolete("This class is obsolete and will be removed in a future version. The recommended alternative is to use MapHub<THub> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")>]
type HubRouteBuilder = class
Public Class HubRouteBuilder
Inheritance
HubRouteBuilder
Attributes

Constructors

HubRouteBuilder(ConnectionsRouteBuilder)

Initializes a new instance of the HubRouteBuilder class.

Methods

MapHub<THub>(PathString)

Maps incoming requests with the specified path to the specified Hub type.

MapHub<THub>(PathString, Action<HttpConnectionDispatcherOptions>)

Maps incoming requests with the specified path to the specified Hub type.

Applies to