ConnectionsRouteBuilder.MapConnectionHandler 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
MapConnectionHandler<TConnectionHandler>(PathString) |
将具有指定路径的传入请求映射到所提供的连接管道。 |
MapConnectionHandler<TConnectionHandler>(PathString, Action<HttpConnectionDispatcherOptions>) |
将具有指定路径的传入请求映射到所提供的连接管道。 |
MapConnectionHandler<TConnectionHandler>(PathString)
- Source:
- ConnectionsRouteBuilder.cs
- Source:
- ConnectionsRouteBuilder.cs
将具有指定路径的传入请求映射到所提供的连接管道。
public:
generic <typename TConnectionHandler>
where TConnectionHandler : Microsoft::AspNetCore::Connections::ConnectionHandler void MapConnectionHandler(Microsoft::AspNetCore::Http::PathString path);
public void MapConnectionHandler<TConnectionHandler> (Microsoft.AspNetCore.Http.PathString path) where TConnectionHandler : Microsoft.AspNetCore.Connections.ConnectionHandler;
member this.MapConnectionHandler : Microsoft.AspNetCore.Http.PathString -> unit (requires 'ConnectionHandler :> Microsoft.AspNetCore.Connections.ConnectionHandler)
Public Sub MapConnectionHandler(Of TConnectionHandler As ConnectionHandler) (path As PathString)
类型参数
- TConnectionHandler
参数
- path
- PathString
请求路径。
适用于
MapConnectionHandler<TConnectionHandler>(PathString, Action<HttpConnectionDispatcherOptions>)
- Source:
- ConnectionsRouteBuilder.cs
- Source:
- ConnectionsRouteBuilder.cs
将具有指定路径的传入请求映射到所提供的连接管道。
public:
generic <typename TConnectionHandler>
where TConnectionHandler : Microsoft::AspNetCore::Connections::ConnectionHandler void MapConnectionHandler(Microsoft::AspNetCore::Http::PathString path, Action<Microsoft::AspNetCore::Http::Connections::HttpConnectionDispatcherOptions ^> ^ configureOptions);
public void MapConnectionHandler<TConnectionHandler> (Microsoft.AspNetCore.Http.PathString path, Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions> configureOptions) where TConnectionHandler : Microsoft.AspNetCore.Connections.ConnectionHandler;
member this.MapConnectionHandler : Microsoft.AspNetCore.Http.PathString * Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions> -> unit (requires 'ConnectionHandler :> Microsoft.AspNetCore.Connections.ConnectionHandler)
Public Sub MapConnectionHandler(Of TConnectionHandler As ConnectionHandler) (path As PathString, configureOptions As Action(Of HttpConnectionDispatcherOptions))
类型参数
- TConnectionHandler
参数
- path
- PathString
请求路径。
- configureOptions
- Action<HttpConnectionDispatcherOptions>
用于配置调度程序选项的回调。