ConnectionsAppBuilderExtensions.UseConnections 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.
Attenzione
This method is obsolete and will be removed in a future version. The recommended alternative is to use MapConnections or MapConnectionHandler<TConnectionHandler> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).
Aggiunge il supporto per ASP.NET Core gestori di connessione alla pipeline di esecuzione della IApplicationBuilder richiesta.
Questo metodo è obsoleto e verrà rimosso in una versione futura. L'alternativa consigliata consiste nell'usare MapConnections o MapConnectionHandler<TConnectionHandler> all'interno di Microsoft.AspNetCore.Builder.UseEndpoints(...).
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseConnections(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Action<Microsoft::AspNetCore::Http::Connections::ConnectionsRouteBuilder ^> ^ configure);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseConnections (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Action<Microsoft.AspNetCore.Http.Connections.ConnectionsRouteBuilder> configure);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is to use MapConnections or MapConnectionHandler<TConnectionHandler> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseConnections (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Action<Microsoft.AspNetCore.Http.Connections.ConnectionsRouteBuilder> configure);
static member UseConnections : Microsoft.AspNetCore.Builder.IApplicationBuilder * Action<Microsoft.AspNetCore.Http.Connections.ConnectionsRouteBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is to use MapConnections or MapConnectionHandler<TConnectionHandler> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")>]
static member UseConnections : Microsoft.AspNetCore.Builder.IApplicationBuilder * Action<Microsoft.AspNetCore.Http.Connections.ConnectionsRouteBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseConnections (app As IApplicationBuilder, configure As Action(Of ConnectionsRouteBuilder)) As IApplicationBuilder
Parametri
Oggetto IApplicationBuilder.
- configure
- Action<ConnectionsRouteBuilder>
Callback per configurare le route di connessione.
Restituisce
Stessa istanza di IApplicationBuilder per il concatenamento.
- Attributi