OwinWebSocketAdapter Class

Namespace
Microsoft.AspNetCore.Owin
Assemblies
  • Microsoft.AspNetCore.Owin

Inheritance Hierarchy

Syntax

public class OwinWebSocketAdapter : WebSocket, IDisposable
class Microsoft.AspNetCore.Owin.OwinWebSocketAdapter

Constructors

OwinWebSocketAdapter(System.Collections.Generic.IDictionary<System.String, System.Object>, System.String)
public OwinWebSocketAdapter(IDictionary<string, object> websocketContext, string subProtocol)

Methods

Abort()
public override void Abort()
CloseAsync(System.Net.WebSockets.WebSocketCloseStatus, System.String, System.Threading.CancellationToken)
Return type:System.Threading.Tasks.Task
public override Task CloseAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken)
CloseOutputAsync(System.Net.WebSockets.WebSocketCloseStatus, System.String, System.Threading.CancellationToken)
Return type:System.Threading.Tasks.Task
public override Task CloseOutputAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken)
Dispose()
public override void Dispose()
ReceiveAsync(System.ArraySegment<System.Byte>, System.Threading.CancellationToken)
Return type:System.Threading.Tasks.Task<System.Net.WebSockets.WebSocketReceiveResult>
public override Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken)
SendAsync(System.ArraySegment<System.Byte>, System.Net.WebSockets.WebSocketMessageType, System.Boolean, System.Threading.CancellationToken)
Return type:System.Threading.Tasks.Task
public override Task SendAsync(ArraySegment<byte> buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken)

Properties

Microsoft.AspNetCore.Owin.OwinWebSocketAdapter.CloseStatus
Return type:System.Nullable<System.Net.WebSockets.WebSocketCloseStatus>
public override WebSocketCloseStatus? CloseStatus { get; }
Microsoft.AspNetCore.Owin.OwinWebSocketAdapter.CloseStatusDescription
Return type:System.String
public override string CloseStatusDescription { get; }
Microsoft.AspNetCore.Owin.OwinWebSocketAdapter.State
Return type:System.Net.WebSockets.WebSocketState
public override WebSocketState State { get; }
Microsoft.AspNetCore.Owin.OwinWebSocketAdapter.SubProtocol
Return type:System.String
public override string SubProtocol { get; }