/// <summary>
 /// OnStop: Put your stop code here
 /// - Stop threads, set final data, etc.
 /// </summary>
 protected override void OnStop()
 {
     if (ussdManager != null)
     {
         ussdManager.Stop();
         waitEvent.Set();
     }
 }
Example #2
0
        static void OnCancelKeyPress(object sender, ConsoleCancelEventArgs e)
        {
            ussdManager.Stop();

            waitEvent.Set();

            e.Cancel = true;
        }