예제 #1
0
        /*
         * Stop the underlying EdgeListener.  This is important to stop any
         * thread and resources that might be allocated by that EdgeListener.
         */
        public void Stop()
        {
            foreach (Edge e in _unannounced.Values)
            {
                try {
                    e.Close();
                } catch (Exception ex) {
                    Console.WriteLine(ex);
                }
            }

            _running = false;
            if (_fe != null)
            {
                _fe.TryCancel();
            }
            _el.Stop();
        }
예제 #2
0
 ///<summary>This is passed to the underlying EdgeListener.  By default we do
 ///nothing to this.</summary>
 public override void Stop()
 {
     _el.Stop();
 }
예제 #3
0
 public static void HandleClose(object edge, EventArgs args)
 {
     Console.WriteLine("Closing edge: {0}", edge);
     _el.Stop();
 }