System.Net.WebSockets.WebSocket.CloseOutputAsync C# (CSharp) Method

CloseOutputAsync() public abstract method

public abstract CloseOutputAsync ( System closeStatus, string statusDescription, System cancellationToken ) : System.Threading.Tasks.Task
closeStatus System
statusDescription string
cancellationToken System
return System.Threading.Tasks.Task
        public abstract System.Threading.Tasks.Task CloseOutputAsync(System.Net.WebSockets.WebSocketCloseStatus closeStatus, string statusDescription, System.Threading.CancellationToken cancellationToken);
        public static System.ArraySegment<byte> CreateClientBuffer(int receiveBufferSize, int sendBufferSize) { throw null; }

Usage Example

示例#1
0
 public override Task CloseOutputAsync(WebSocketCloseStatus closeStatus, string statusDescription,
                                       CancellationToken cancellationToken)
 {
     ThrowIfNotConnected();
     WebSocketValidate.ValidateCloseStatus(closeStatus, statusDescription);
     return(_innerWebSocket.CloseOutputAsync(closeStatus, statusDescription, cancellationToken));
 }
All Usage Examples Of System.Net.WebSockets.WebSocket::CloseOutputAsync