Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

HubRouteBuilder Class

Definition

Namespace:
Microsoft.AspNetCore.SignalR
Assembly:
Microsoft.AspNetCore.SignalR.dll
Package:
Microsoft.AspNetCore.SignalR v1.0.0
Package:
Microsoft.AspNetCore.SignalR v1.1.0
Package:
Microsoft.AspNetCore.App.Ref v3.0.1
Package:
Microsoft.AspNetCore.App.Ref v3.1.10
Source:
HubRouteBuilder.cs
Source:
HubRouteBuilder.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Caution

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(...).

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

Name Description
HubRouteBuilder(ConnectionsRouteBuilder)

Initializes a new instance of the HubRouteBuilder class.

Methods

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

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

MapHub<THub>(PathString)

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

Applies to


Feedback

Was this page helpful?