Пример #1
0
 public void ping(Test.IPingReplyPrx reply, Current current)
 {
     try
     {
         reply.reply();
     }
     catch (LocalException)
     {
         Debug.Assert(false);
     }
 }
Пример #2
0
 public void sendByteSeq(byte[] seq, Test.IPingReplyPrx reply, Current current)
 {
     try
     {
         reply.reply();
     }
     catch (LocalException)
     {
         Debug.Assert(false);
     }
 }
Пример #3
0
        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();
        }