HubRouteBuilder 类

定义

注意

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

将传入请求映射到 Hub 类型。

此类已过时,将在将来的版本中删除。 建议的替代方法是在 Microsoft.AspNetCore.Builder.UseEndpoints (...) 中使用 MapHub<THub> 。

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
继承
HubRouteBuilder
属性

构造函数

HubRouteBuilder(ConnectionsRouteBuilder)
已过时.

初始化 HubRouteBuilder 类的新实例。

方法

MapHub<THub>(PathString, Action<HttpConnectionDispatcherOptions>)
已过时.

将具有指定路径的传入请求映射到指定 Hub 类型。

MapHub<THub>(PathString)
已过时.

将具有指定路径的传入请求映射到指定 Hub 类型。

适用于