Пример #1
0
 public void TraceError(string message)
 {
     if (m_traceSource != null)
     {
         m_traceSource.TraceError(message);
     }
 }
Пример #2
0
        public void Disconnect()
        {
            trace.TraceInformation("Disconnect");

            try
            {
                // this will cause the deserializer thread to wake up
                m_socket.Shutdown(SocketShutdown.Both);
            }
            catch (SocketException e)
            {
                trace.TraceError("Error when disconnecting: {0}", e.Message);
            }

            m_deserializerThread.Join();

            trace.TraceInformation("Disconnect done");
        }