ConnectionEndpointRouteBuilderExtensions.MapConnectionHandler Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String) |
Mappe les requêtes entrantes avec le chemin spécifié au pipeline de connexion fourni. |
MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>) |
Mappe les requêtes entrantes avec le chemin spécifié au pipeline de connexion fourni. |
MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String)
Mappe les requêtes entrantes avec le chemin spécifié au pipeline de connexion fourni.
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
Paramètres de type
- TConnectionHandler
Type de ConnectionHandler.
Paramètres
- endpoints
- IEndpointRouteBuilder
IEndpointRouteBuilder à laquelle ajouter l’itinéraire.
- pattern
- String
Modèle d’itinéraire.
Retours
ConnectionEndpointRouteBuilder pour les points de terminaison associés aux connexions.
S’applique à
MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>)
Mappe les requêtes entrantes avec le chemin spécifié au pipeline de connexion fourni.
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
Paramètres de type
- TConnectionHandler
Type de ConnectionHandler.
Paramètres
- endpoints
- IEndpointRouteBuilder
IEndpointRouteBuilder à laquelle ajouter l’itinéraire.
- pattern
- String
Modèle d’itinéraire.
- configureOptions
- Action<HttpConnectionDispatcherOptions>
Rappel pour configurer les options de répartiteur.
Retours
ConnectionEndpointRouteBuilder pour les points de terminaison associés aux connexions.