共用方式為


ComponentEndpointRouteBuilderExtensions.MapBlazorHub 方法

定義

多載

MapBlazorHub(IEndpointRouteBuilder)

將 Blazor Hub 對應至預設路徑。

MapBlazorHub(IEndpointRouteBuilder, Action<HttpConnectionDispatcherOptions>)

將 Blazor Hub 對應至預設路徑。

MapBlazorHub(IEndpointRouteBuilder, String)

將 Blazor Hub 對應至路徑 path

MapBlazorHub(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>)

將 Blazor Hub 對應至路徑 path

MapBlazorHub(IEndpointRouteBuilder)

來源:
ComponentEndpointRouteBuilderExtensions.cs

將 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

參數

傳回

ComponentEndpointConventionBuilder

適用於

MapBlazorHub(IEndpointRouteBuilder, Action<HttpConnectionDispatcherOptions>)

來源:
ComponentEndpointRouteBuilderExtensions.cs

將 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

參數

configureOptions
Action<HttpConnectionDispatcherOptions>

用來設定發送器選項的回呼。

傳回

ComponentEndpointConventionBuilder

適用於

MapBlazorHub(IEndpointRouteBuilder, String)

來源:
ComponentEndpointRouteBuilderExtensions.cs

將 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

參數

path
String

對應 Blazor Hub 的路徑。

傳回

ComponentEndpointConventionBuilder

適用於

MapBlazorHub(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>)

來源:
ComponentEndpointRouteBuilderExtensions.cs

將 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

參數

path
String

對應 Blazor Hub 的路徑。

configureOptions
Action<HttpConnectionDispatcherOptions>

用來設定發送器選項的回呼。

傳回

ComponentEndpointConventionBuilder

適用於