Udostępnij za pośrednictwem


WebSocketExtensions.AcceptWebSocketAsync Metoda

Definicja

Przeciążenia

AcceptWebSocketAsync(RequestContext)
AcceptWebSocketAsync(RequestContext, String)
AcceptWebSocketAsync(RequestContext, String, TimeSpan)
AcceptWebSocketAsync(RequestContext, String, Int32, TimeSpan)
AcceptWebSocketAsync(RequestContext, String, Int32, TimeSpan, ArraySegment<Byte>)

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>

Zwraca

Dotyczy