WebSocketExtensions.AcceptWebSocketAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
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)
Paramètres
- context
- RequestContext
Retours
S’applique à
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)
Paramètres
- context
- RequestContext
- subProtocol
- String
Retours
S’applique à
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)
Paramètres
- context
- RequestContext
- subProtocol
- String
- keepAliveInterval
- TimeSpan
Retours
S’applique à
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)
Paramètres
- context
- RequestContext
- subProtocol
- String
- receiveBufferSize
- Int32
- keepAliveInterval
- TimeSpan
Retours
S’applique à
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)
Paramètres
- context
- RequestContext
- subProtocol
- String
- receiveBufferSize
- Int32
- keepAliveInterval
- TimeSpan
- internalBuffer
- ArraySegment<Byte>