ConnectionEndpointRouteBuilderExtensions.MapConnections 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
MapConnections(IEndpointRouteBuilder, String, Action<IConnectionBuilder>) |
将具有指定路径的传入请求映射到提供的连接管道。 |
MapConnections(IEndpointRouteBuilder, String, HttpConnectionDispatcherOptions, Action<IConnectionBuilder>) |
将具有指定路径的传入请求映射到提供的连接管道。 |
MapConnections(IEndpointRouteBuilder, String, Action<IConnectionBuilder>)
将具有指定路径的传入请求映射到提供的连接管道。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::ConnectionEndpointRouteBuilder ^ MapConnections(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern, Action<Microsoft::AspNetCore::Connections::IConnectionBuilder ^> ^ configure);
public static Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder MapConnections (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Action<Microsoft.AspNetCore.Connections.IConnectionBuilder> configure);
static member MapConnections : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * Action<Microsoft.AspNetCore.Connections.IConnectionBuilder> -> Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder
<Extension()>
Public Function MapConnections (endpoints As IEndpointRouteBuilder, pattern As String, configure As Action(Of IConnectionBuilder)) As ConnectionEndpointRouteBuilder
参数
- endpoints
- IEndpointRouteBuilder
IEndpointRouteBuilder要向其添加路由的 。
- pattern
- String
路由模式。
- configure
- Action<IConnectionBuilder>
用于配置连接的回调。
返回
与 ConnectionEndpointRouteBuilder 连接关联的终结点的 。
适用于
MapConnections(IEndpointRouteBuilder, String, HttpConnectionDispatcherOptions, Action<IConnectionBuilder>)
将具有指定路径的传入请求映射到提供的连接管道。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::ConnectionEndpointRouteBuilder ^ MapConnections(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern, Microsoft::AspNetCore::Http::Connections::HttpConnectionDispatcherOptions ^ options, Action<Microsoft::AspNetCore::Connections::IConnectionBuilder ^> ^ configure);
public static Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder MapConnections (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions options, Action<Microsoft.AspNetCore.Connections.IConnectionBuilder> configure);
static member MapConnections : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions * Action<Microsoft.AspNetCore.Connections.IConnectionBuilder> -> Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder
<Extension()>
Public Function MapConnections (endpoints As IEndpointRouteBuilder, pattern As String, options As HttpConnectionDispatcherOptions, configure As Action(Of IConnectionBuilder)) As ConnectionEndpointRouteBuilder
参数
- endpoints
- IEndpointRouteBuilder
IEndpointRouteBuilder要向其添加路由的 。
- pattern
- String
路由模式。
- options
- HttpConnectionDispatcherOptions
用于配置连接的选项。
- configure
- Action<IConnectionBuilder>
用于配置连接的回调。
返回
与 ConnectionEndpointRouteBuilder 连接关联的终结点的 。