Exemple #1
0
 public bool Disconnect()
 {
     Logger.Log("Trace:Disconnect(): Started", LogEntryType.Information);
     try
     {
         if (!_traceServer.IsClosed)
         {
             _traceServer.Close();
         }
         _traceServer.Dispose();
     }
     catch (Exception e)
     {
         OnDisconnectError(e);
         return(false);
     }
     Logger.Log("Trace:Disconnect(): Finished", LogEntryType.Information);
     return(true);
 }