WebSocketMiddlewareExtensions.UseWebSockets Metodo
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.
UseWebSockets(IApplicationBuilder) |
Aggiunge alla WebSocketMiddleware pipeline di richiesta. |
UseWebSockets(IApplicationBuilder, WebSocketOptions) |
Aggiunge alla WebSocketMiddleware pipeline di richiesta. |
- Origine:
- WebSocketMiddlewareExtensions.cs
- Origine:
- WebSocketMiddlewareExtensions.cs
Aggiunge alla WebSocketMiddleware pipeline di richiesta.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseWebSockets(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWebSockets (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseWebSockets : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseWebSockets (app As IApplicationBuilder) As IApplicationBuilder
Parametri
Oggetto IApplicationBuilder da configurare.
Restituisce
Oggetto IApplicationBuilder.
Si applica a
- Origine:
- WebSocketMiddlewareExtensions.cs
- Origine:
- WebSocketMiddlewareExtensions.cs
Aggiunge alla WebSocketMiddleware pipeline di richiesta.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseWebSockets(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::WebSocketOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWebSockets (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.WebSocketOptions options);
static member UseWebSockets : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.WebSocketOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseWebSockets (app As IApplicationBuilder, options As WebSocketOptions) As IApplicationBuilder
Parametri
Oggetto IApplicationBuilder da configurare.
- options
- WebSocketOptions
Oggetto WebSocketOptions da utilizzare per l'oggetto WebSocketMiddleware.
Restituisce
Oggetto IApplicationBuilder.