/// <summary> /// Constructor for the server. /// </summary> /// <param name="session">The Session whose messages are collected.</param> /// <param name="callback">The user function call with each message.</param> /// public CallbackServer(Session session, ISessionReceiver callback) { ee = new EventEngine(session, callback); new System.Threading.Thread( new System.Threading.ThreadStart(ee.Open)).Start(); }