WebSocketExtensions.AcceptWebSocketAsync Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AcceptWebSocketAsync(RequestContext)
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<System::Net::WebSockets::WebSocket ^> ^ AcceptWebSocketAsync(Microsoft::Net::Http::Server::RequestContext ^ context);
public static System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync (this Microsoft.Net.Http.Server.RequestContext context);
static member AcceptWebSocketAsync : Microsoft.Net.Http.Server.RequestContext -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
<Extension()>
Public Function AcceptWebSocketAsync (context As RequestContext) As Task(Of WebSocket)
Parámetros
- context
- RequestContext
Devoluciones
Se aplica a
AcceptWebSocketAsync(RequestContext, String)
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<System::Net::WebSockets::WebSocket ^> ^ AcceptWebSocketAsync(Microsoft::Net::Http::Server::RequestContext ^ context, System::String ^ subProtocol);
public static System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync (this Microsoft.Net.Http.Server.RequestContext context, string subProtocol);
static member AcceptWebSocketAsync : Microsoft.Net.Http.Server.RequestContext * string -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
<Extension()>
Public Function AcceptWebSocketAsync (context As RequestContext, subProtocol As String) As Task(Of WebSocket)
Parámetros
- context
- RequestContext
- subProtocol
- String
Devoluciones
Se aplica a
AcceptWebSocketAsync(RequestContext, String, TimeSpan)
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<System::Net::WebSockets::WebSocket ^> ^ AcceptWebSocketAsync(Microsoft::Net::Http::Server::RequestContext ^ context, System::String ^ subProtocol, TimeSpan keepAliveInterval);
public static System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync (this Microsoft.Net.Http.Server.RequestContext context, string subProtocol, TimeSpan keepAliveInterval);
static member AcceptWebSocketAsync : Microsoft.Net.Http.Server.RequestContext * string * TimeSpan -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
<Extension()>
Public Function AcceptWebSocketAsync (context As RequestContext, subProtocol As String, keepAliveInterval As TimeSpan) As Task(Of WebSocket)
Parámetros
- context
- RequestContext
- subProtocol
- String
- keepAliveInterval
- TimeSpan
Devoluciones
Se aplica a
AcceptWebSocketAsync(RequestContext, String, Int32, TimeSpan)
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<System::Net::WebSockets::WebSocket ^> ^ AcceptWebSocketAsync(Microsoft::Net::Http::Server::RequestContext ^ context, System::String ^ subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval);
public static System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync (this Microsoft.Net.Http.Server.RequestContext context, string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval);
static member AcceptWebSocketAsync : Microsoft.Net.Http.Server.RequestContext * string * int * TimeSpan -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
<Extension()>
Public Function AcceptWebSocketAsync (context As RequestContext, subProtocol As String, receiveBufferSize As Integer, keepAliveInterval As TimeSpan) As Task(Of WebSocket)
Parámetros
- context
- RequestContext
- subProtocol
- String
- receiveBufferSize
- Int32
- keepAliveInterval
- TimeSpan
Devoluciones
Se aplica a
AcceptWebSocketAsync(RequestContext, String, Int32, TimeSpan, ArraySegment<Byte>)
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<System::Net::WebSockets::WebSocket ^> ^ AcceptWebSocketAsync(Microsoft::Net::Http::Server::RequestContext ^ context, System::String ^ subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval, ArraySegment<System::Byte> internalBuffer);
public static System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket> AcceptWebSocketAsync (this Microsoft.Net.Http.Server.RequestContext context, string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval, ArraySegment<byte> internalBuffer);
static member AcceptWebSocketAsync : Microsoft.Net.Http.Server.RequestContext * string * int * TimeSpan * ArraySegment<byte> -> System.Threading.Tasks.Task<System.Net.WebSockets.WebSocket>
<Extension()>
Public Function AcceptWebSocketAsync (context As RequestContext, subProtocol As String, receiveBufferSize As Integer, keepAliveInterval As TimeSpan, internalBuffer As ArraySegment(Of Byte)) As Task(Of WebSocket)
Parámetros
- context
- RequestContext
- subProtocol
- String
- receiveBufferSize
- Int32
- keepAliveInterval
- TimeSpan
- internalBuffer
- ArraySegment<Byte>