/* * 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(); }
///<summary>This is passed to the underlying EdgeListener. By default we do ///nothing to this.</summary> public override void Stop() { _el.Stop(); }
public static void HandleClose(object edge, EventArgs args) { Console.WriteLine("Closing edge: {0}", edge); _el.Stop(); }