Exemple #1
0
 public void Stop()
 {
     if (sendStop != null)
     {
         sendStop.Set();
     }
     if (streamClient != null)
     {
         streamClient.Close();
     }
 }
Exemple #2
0
        /// <summary>
        /// Stop the DataServer
        /// </summary>
        public void Stop()
        {
            if (sendStop != null)
            {
                sendStop.Set();
            }

            if (streamClient != null)
            {
                streamClient.Close();
            }

            if (Buffer != null)
            {
                Buffer.Stop();
            }

            log.Info("DataServer : " + Hostname + " Stopped");
        }