protected override void OnDestroy() { base.OnDestroy(); if (socket != null) { socket.Dispose(); } }
public void Dispose() { _cancellation.Cancel(); if (_readTask != null) { _readTask.Wait(); } _socket.Dispose(); }
void OnDestroy() { ws.Dispose(); }
protected override void OnDestroy() { base.OnDestroy(); if (socket != null) { socket.Dispose(); } }
public void Dispose() { _cancellation.Cancel(); if (_readTask != null) { _readTask.Wait(); } _socket.Dispose(); }
void OnDestroy() { ws.Dispose(); }