public void ping(Test.IPingReplyPrx reply, Current current) { try { reply.reply(); } catch (LocalException) { Debug.Assert(false); } }
public void sendByteSeq(byte[] seq, Test.IPingReplyPrx reply, Current current) { try { reply.reply(); } catch (LocalException) { Debug.Assert(false); } }
public void pingBiDir(Test.IPingReplyPrx reply, Ice.Current current) { reply = reply.Clone(fixedConnection: current.Connection); Thread dispatchThread = Thread.CurrentThread; reply.replyAsync().ContinueWith( (t) => { Thread callbackThread = Thread.CurrentThread; test(dispatchThread != callbackThread); test(callbackThread.Name.Contains("Ice.ThreadPool.Server")); }, reply.Scheduler).Wait(); }