WebSocketExtensions.AcceptWebSocketAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
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)
Parameter
- context
- RequestContext
Gibt zurück
Gilt für:
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)
Parameter
- context
- RequestContext
- subProtocol
- String
Gibt zurück
Gilt für:
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)
Parameter
- context
- RequestContext
- subProtocol
- String
- keepAliveInterval
- TimeSpan
Gibt zurück
Gilt für:
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)
Parameter
- context
- RequestContext
- subProtocol
- String
- receiveBufferSize
- Int32
- keepAliveInterval
- TimeSpan
Gibt zurück
Gilt für:
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)
Parameter
- context
- RequestContext
- subProtocol
- String
- receiveBufferSize
- Int32
- keepAliveInterval
- TimeSpan
- internalBuffer
- ArraySegment<Byte>