ConnectionEndpointRouteBuilderExtensions.MapConnectionHandler 方法

定义

重载

MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String)

将具有指定路径的传入请求映射到提供的连接管道。

MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>)

将具有指定路径的传入请求映射到提供的连接管道。

MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String)

将具有指定路径的传入请求映射到提供的连接管道。

public:
generic <typename TConnectionHandler>
 where TConnectionHandler : Microsoft::AspNetCore::Connections::ConnectionHandler[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::ConnectionEndpointRouteBuilder ^ MapConnectionHandler(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern);
public static Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder MapConnectionHandler<TConnectionHandler> (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern) where TConnectionHandler : Microsoft.AspNetCore.Connections.ConnectionHandler;
static member MapConnectionHandler : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string -> Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder (requires 'ConnectionHandler :> Microsoft.AspNetCore.Connections.ConnectionHandler)
<Extension()>
Public Function MapConnectionHandler(Of TConnectionHandler As ConnectionHandler) (endpoints As IEndpointRouteBuilder, pattern As String) As ConnectionEndpointRouteBuilder

类型参数

TConnectionHandler

ConnectionHandler 类型。

参数

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder要向其添加路由的 。

pattern
String

路由模式。

返回

ConnectionEndpointRouteBuilder 连接关联的终结点的 。

适用于

MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>)

将具有指定路径的传入请求映射到提供的连接管道。

public:
generic <typename TConnectionHandler>
 where TConnectionHandler : Microsoft::AspNetCore::Connections::ConnectionHandler[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::ConnectionEndpointRouteBuilder ^ MapConnectionHandler(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern, Action<Microsoft::AspNetCore::Http::Connections::HttpConnectionDispatcherOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder MapConnectionHandler<TConnectionHandler> (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions> configureOptions) where TConnectionHandler : Microsoft.AspNetCore.Connections.ConnectionHandler;
public static Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder MapConnectionHandler<TConnectionHandler> (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions>? configureOptions) where TConnectionHandler : Microsoft.AspNetCore.Connections.ConnectionHandler;
static member MapConnectionHandler : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions> -> Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder (requires 'ConnectionHandler :> Microsoft.AspNetCore.Connections.ConnectionHandler)
<Extension()>
Public Function MapConnectionHandler(Of TConnectionHandler As ConnectionHandler) (endpoints As IEndpointRouteBuilder, pattern As String, configureOptions As Action(Of HttpConnectionDispatcherOptions)) As ConnectionEndpointRouteBuilder

类型参数

TConnectionHandler

ConnectionHandler 类型。

参数

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder要向其添加路由的 。

pattern
String

路由模式。

configureOptions
Action<HttpConnectionDispatcherOptions>

用于配置调度程序选项的回调。

返回

ConnectionEndpointRouteBuilder 连接关联的终结点的 。

适用于