CentralMine.NET.ClientManager.Close C# (CSharp) Method

Close() public method

public Close ( ) : void
return void
        public void Close()
        {
            mUpstream.Destroy();

            // Kill the listener
            mListener.Close();

            // Kill the update thread
            mUpdateThread.Abort();

            // Close all clients
            foreach (Client c in mClients)
            {
                c.Close();
            }

            // Close the event log
            mEventLog.Close();
        }

Usage Example

Example #1
0
 void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     timer1.Enabled = false;
     mTheMan.Close();
     mTheMan = null;
 }