共用方式為


WebSocketMiddlewareExtensions.UseWebSockets 方法

定義

多載

UseWebSockets(IApplicationBuilder)

WebSocketMiddleware 加入至要求管線。

UseWebSockets(IApplicationBuilder, WebSocketOptions)

WebSocketMiddleware 加入至要求管線。

UseWebSockets(IApplicationBuilder)

來源:
WebSocketMiddlewareExtensions.cs
來源:
WebSocketMiddlewareExtensions.cs

WebSocketMiddleware 加入至要求管線。

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

參數

傳回

IApplicationBuilder

適用於

UseWebSockets(IApplicationBuilder, WebSocketOptions)

來源:
WebSocketMiddlewareExtensions.cs
來源:
WebSocketMiddlewareExtensions.cs

WebSocketMiddleware 加入至要求管線。

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

參數

傳回

IApplicationBuilder

適用於