ComponentEndpointRouteBuilderExtensions.MapBlazorHub 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
MapBlazorHub(IEndpointRouteBuilder) |
将 Blazor Hub 映射到默认路径。 |
MapBlazorHub(IEndpointRouteBuilder, Action<HttpConnectionDispatcherOptions>) |
将 Blazor Hub 映射到默认路径。 |
MapBlazorHub(IEndpointRouteBuilder, String) |
将 Blazor Hub 映射到路径 |
MapBlazorHub(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>) |
将 Blazor Hub 映射到路径 |
MapBlazorHub(IEndpointRouteBuilder)
将 Blazor Hub 映射到默认路径。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::ComponentEndpointConventionBuilder ^ MapBlazorHub(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints);
public static Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder MapBlazorHub (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints);
static member MapBlazorHub : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder -> Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder
<Extension()>
Public Function MapBlazorHub (endpoints As IEndpointRouteBuilder) As ComponentEndpointConventionBuilder
参数
- endpoints
- IEndpointRouteBuilder
返回
ComponentEndpointConventionBuilder
适用于
MapBlazorHub(IEndpointRouteBuilder, Action<HttpConnectionDispatcherOptions>)
将 Blazor Hub 映射到默认路径。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::ComponentEndpointConventionBuilder ^ MapBlazorHub(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, Action<Microsoft::AspNetCore::Http::Connections::HttpConnectionDispatcherOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder MapBlazorHub (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions> configureOptions);
static member MapBlazorHub : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions> -> Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder
<Extension()>
Public Function MapBlazorHub (endpoints As IEndpointRouteBuilder, configureOptions As Action(Of HttpConnectionDispatcherOptions)) As ComponentEndpointConventionBuilder
参数
- endpoints
- IEndpointRouteBuilder
- configureOptions
- Action<HttpConnectionDispatcherOptions>
用于配置调度程序选项的回调。
返回
ComponentEndpointConventionBuilder。
适用于
MapBlazorHub(IEndpointRouteBuilder, String)
将 Blazor Hub 映射到路径 path
。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::ComponentEndpointConventionBuilder ^ MapBlazorHub(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ path);
public static Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder MapBlazorHub (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string path);
static member MapBlazorHub : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string -> Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder
<Extension()>
Public Function MapBlazorHub (endpoints As IEndpointRouteBuilder, path As String) As ComponentEndpointConventionBuilder
参数
- endpoints
- IEndpointRouteBuilder
返回
ComponentEndpointConventionBuilder。
适用于
MapBlazorHub(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>)
将 Blazor Hub 映射到路径 path
。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::ComponentEndpointConventionBuilder ^ MapBlazorHub(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ path, Action<Microsoft::AspNetCore::Http::Connections::HttpConnectionDispatcherOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder MapBlazorHub (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string path, Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions> configureOptions);
static member MapBlazorHub : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions> -> Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder
<Extension()>
Public Function MapBlazorHub (endpoints As IEndpointRouteBuilder, path As String, configureOptions As Action(Of HttpConnectionDispatcherOptions)) As ComponentEndpointConventionBuilder
参数
- endpoints
- IEndpointRouteBuilder
- configureOptions
- Action<HttpConnectionDispatcherOptions>
用于配置调度程序选项的回调。
返回
ComponentEndpointConventionBuilder。