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

CloseOutputAsync() public method

public CloseOutputAsync ( System closeStatus, string statusDescription, System cancellationToken ) : System.Threading.Tasks.Task
closeStatus System
statusDescription string
cancellationToken System
return System.Threading.Tasks.Task
        public override System.Threading.Tasks.Task CloseOutputAsync(System.Net.WebSockets.WebSocketCloseStatus closeStatus, string statusDescription, System.Threading.CancellationToken cancellationToken) { throw null; }
        public System.Threading.Tasks.Task ConnectAsync(System.Uri uri, System.Threading.CancellationToken cancellationToken) { throw null; }

Same methods

ClientWebSocket::CloseOutputAsync ( WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken ) : Task

Usage Example

示例#1
0
 private void disconnect()
 {
     try {
         clientWebSocket.CloseOutputAsync(WebSocketCloseStatus.Empty, null, CancellationToken.None);
     }
     catch (Exception) {
         // ignore
     }
 }
All Usage Examples Of System.Net.WebSockets.ClientWebSocket::CloseOutputAsync