WebSocketExtensions.AcceptWebSocketAsync Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
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)
Parametry
- context
- RequestContext
Zwraca
Dotyczy
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)
Parametry
- context
- RequestContext
- subProtocol
- String
Zwraca
Dotyczy
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)
Parametry
- context
- RequestContext
- subProtocol
- String
- keepAliveInterval
- TimeSpan
Zwraca
Dotyczy
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)
Parametry
- context
- RequestContext
- subProtocol
- String
- receiveBufferSize
- Int32
- keepAliveInterval
- TimeSpan
Zwraca
Dotyczy
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)
Parametry
- context
- RequestContext
- subProtocol
- String
- receiveBufferSize
- Int32
- keepAliveInterval
- TimeSpan
- internalBuffer
- ArraySegment<Byte>