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