public void ThreadedClient() { ThreadedClient client = new ThreadedClient(subscribePORT); try { client.subscribe(HOST, PORT, "Trades", new SampleMessageHandler()); } catch (IOException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } }
public void testThreaded() { ThreadedClient client = new ThreadedClient(SUB_PORT); try { client.subscribe(REMOTE_HOST, REMOTE_PORT, REMOTE_TABLE_NAME, new SampleMessageHandler(), 0); } catch (Exception ex) { Console.WriteLine(ex.ToString()); Console.Write(ex.StackTrace); Assert.Fail(ex.Message); } }