ConnectionEndpointRouteBuilderExtensions.MapConnectionHandler Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String) |
Esegue il mapping delle richieste in ingresso con il percorso specificato alla pipeline di connessione specificata. |
MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>) |
Esegue il mapping delle richieste in ingresso con il percorso specificato alla pipeline di connessione specificata. |
MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String)
Esegue il mapping delle richieste in ingresso con il percorso specificato alla pipeline di connessione specificata.
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
Parametri di tipo
- TConnectionHandler
Tipo ConnectionHandler.
Parametri
- endpoints
- IEndpointRouteBuilder
Oggetto IEndpointRouteBuilder da aggiungere alla route.
- pattern
- String
Modello di route.
Restituisce
Oggetto ConnectionEndpointRouteBuilder per gli endpoint associati alle connessioni.
Si applica a
MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>)
Esegue il mapping delle richieste in ingresso con il percorso specificato alla pipeline di connessione specificata.
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
Parametri di tipo
- TConnectionHandler
Tipo ConnectionHandler.
Parametri
- endpoints
- IEndpointRouteBuilder
Oggetto IEndpointRouteBuilder da aggiungere alla route.
- pattern
- String
Modello di route.
- configureOptions
- Action<HttpConnectionDispatcherOptions>
Callback per configurare le opzioni del dispatcher.
Restituisce
Oggetto ConnectionEndpointRouteBuilder per gli endpoint associati alle connessioni.