public void _1_7_Hello_Sync(Disquuun disquuun) { WaitUntil("_1_7_Hello_Sync", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5); var helloData = disquuun.Hello().DEPRICATED_Sync(); var helloResult = DisquuunDeserializer.Hello(helloData); Assert("_1_7_Hello_Sync", "1", helloResult.version, "not match."); }
public void _2_7_Hello_Async(Disquuun disquuun) { WaitUntil("_2_7_Hello_Async", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5); var version = string.Empty; disquuun.Hello().Async( (c, data) => { var helloResult = DisquuunDeserializer.Hello(data); version = helloResult.version; } ); WaitUntil("_2_7_Hello_Async", () => (version == "1"), 5); }
public long _1_7_Hello_Sync(Disquuun disquuun) { WaitUntil("_1_7_Hello_Sync", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5); var w = new Stopwatch(); w.Start(); var helloData = disquuun.Hello().DEPRICATED_Sync(); var helloResult = DisquuunDeserializer.Hello(helloData); Assert("_1_7_Hello_Sync", "1", helloResult.version, "not match."); w.Stop(); return(w.ElapsedMilliseconds); }
public long _2_7_Hello_Async(Disquuun disquuun) { WaitUntil("_2_7_Hello_Async", () => (disquuun.State() == Disquuun.ConnectionState.OPENED), 5); var version = string.Empty; var w = new Stopwatch(); w.Start(); disquuun.Hello().Async( (c, data) => { var helloResult = DisquuunDeserializer.Hello(data); version = helloResult.version; w.Stop(); } ); WaitUntil("_2_7_Hello_Async", () => (version == "1"), 5); return(w.ElapsedMilliseconds); }