/** * Handles new edges * @param edge the new edge * @param args none, we just need it for EventHandlers */ public static void HandleEdge(object edge, EventArgs args) { Edge e = (Edge)edge; e.CloseEvent += HandleClose; System.Console.WriteLine("Got an Edge: {0}", edge); //The Edge will keep a reference to this ETServer, so it will keep it in //scope as long as the EdgeListener does. IDataHandler printer = new ETServer(e); }
/** * Handles new edges * @param edge the new edge * @param args none, we just need it for EventHandlers */ public static void HandleEdge(object edge, EventArgs args) { Edge e = (Edge) edge; e.CloseEvent += HandleClose; System.Console.WriteLine("Got an Edge: {0}", edge); //The Edge will keep a reference to this ETServer, so it will keep it in //scope as long as the EdgeListener does. IDataHandler printer = new ETServer(e); }