ConnectionsRouteBuilder.MapConnectionHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MapConnectionHandler<TConnectionHandler>(PathString) |
Maps incoming requests with the specified path to the provided connection pipeline. |
MapConnectionHandler<TConnectionHandler>(PathString, Action<HttpConnectionDispatcherOptions>) |
Maps incoming requests with the specified path to the provided connection pipeline. |
MapConnectionHandler<TConnectionHandler>(PathString)
- Source:
- ConnectionsRouteBuilder.cs
- Source:
- ConnectionsRouteBuilder.cs
Maps incoming requests with the specified path to the provided connection pipeline.
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)
Type Parameters
- TConnectionHandler
The ConnectionHandler type.
Parameters
- path
- PathString
The request path.
Applies to
MapConnectionHandler<TConnectionHandler>(PathString, Action<HttpConnectionDispatcherOptions>)
- Source:
- ConnectionsRouteBuilder.cs
- Source:
- ConnectionsRouteBuilder.cs
Maps incoming requests with the specified path to the provided connection pipeline.
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))
Type Parameters
- TConnectionHandler
The ConnectionHandler type.
Parameters
- path
- PathString
The request path.
- configureOptions
- Action<HttpConnectionDispatcherOptions>
A callback to configure dispatcher options.