public static void Main() { Yuanta obj = new Yuanta(); obj.OnResponse += new OnResponseEventHandler(HandleFunction); Thread.Sleep(1000); obj.Stop(); }