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