Поделиться через


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.

Применяется к