WebSocketMiddlewareExtensions.UseWebSockets 方法

定义

重载

UseWebSockets(IApplicationBuilder)

WebSocketMiddleware 添加到请求管道。

UseWebSockets(IApplicationBuilder, WebSocketOptions)

WebSocketMiddleware 添加到请求管道。

UseWebSockets(IApplicationBuilder)

Source:
WebSocketMiddlewareExtensions.cs
Source:
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)

Source:
WebSocketMiddlewareExtensions.cs
Source:
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

适用于