Megosztás a következőn keresztül:


WebSocketMiddlewareExtensions.UseWebSockets Method

Definition

Overloads

UseWebSockets(IApplicationBuilder)

Adds the WebSocketMiddleware to the request pipeline.

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Adds the WebSocketMiddleware to the request pipeline.

UseWebSockets(IApplicationBuilder)

Source:
WebSocketMiddlewareExtensions.cs
Source:
WebSocketMiddlewareExtensions.cs

Adds the WebSocketMiddleware to the request pipeline.

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

Parameters

Returns

The IApplicationBuilder.

Applies to

UseWebSockets(IApplicationBuilder, WebSocketOptions)

Source:
WebSocketMiddlewareExtensions.cs
Source:
WebSocketMiddlewareExtensions.cs

Adds the WebSocketMiddleware to the request pipeline.

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

Parameters

options
WebSocketOptions

The WebSocketOptions to be used for the WebSocketMiddleware.

Returns

The IApplicationBuilder.

Applies to