public void Dispose() { IOStreams.SafelyDispose(InputStream, OutputStream); }
private void DisposeStreamAndCloseConnection(string message) { IOStreams.SafelyDispose(_currentOutputStream); _currentOutputStream = null; CloseConnection(e => Log.Debug(message + "\nException: {e}", e.Message)); }