WebSocketMiddlewareExtensions.UseWebSockets Methode

Definition

Überlädt

UseWebSockets(IApplicationBuilder)

Fügt der WebSocketMiddleware Anforderungspipeline hinzu.

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Fügt der WebSocketMiddleware Anforderungspipeline hinzu.

UseWebSockets(IApplicationBuilder)

Quelle:
WebSocketMiddlewareExtensions.cs
Quelle:
WebSocketMiddlewareExtensions.cs

Fügt der WebSocketMiddleware Anforderungspipeline hinzu.

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

Parameter

app
IApplicationBuilder

Die zu konfigurierende IApplicationBuilder-Schnittstelle.

Gibt zurück

Die IApplicationBuilder.

Gilt für:

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Quelle:
WebSocketMiddlewareExtensions.cs
Quelle:
WebSocketMiddlewareExtensions.cs

Fügt der WebSocketMiddleware Anforderungspipeline hinzu.

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

Parameter

app
IApplicationBuilder

Die zu konfigurierende IApplicationBuilder-Schnittstelle.

options
WebSocketOptions

Der WebSocketOptions , der für verwendet WebSocketMiddlewarewerden soll.

Gibt zurück

Die IApplicationBuilder.

Gilt für: