diff options
author | Benoit Foucher <benoit@zeroc.com> | 2015-03-10 12:12:10 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2015-03-10 12:12:10 +0100 |
commit | c6ca68d97aa5bbc2a172e3e35171b5452657fa22 (patch) | |
tree | 46edcca4c8e313285a205bf6fad7c56c452c0cc0 /cs/demo/IceBox/hello/Client.cs | |
parent | Minor JS style fixes (diff) | |
download | ice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.tar.bz2 ice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.tar.xz ice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.zip |
ICE-6170 - fixed behavior of batch requests
Diffstat (limited to 'cs/demo/IceBox/hello/Client.cs')
-rw-r--r-- | cs/demo/IceBox/hello/Client.cs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/cs/demo/IceBox/hello/Client.cs b/cs/demo/IceBox/hello/Client.cs index 5718bf3e235..02eb146759f 100644 --- a/cs/demo/IceBox/hello/Client.cs +++ b/cs/demo/IceBox/hello/Client.cs @@ -39,7 +39,7 @@ public class Client "x: exit\n" + "?: help\n"); } - + public override int run(string[] args) { if(args.Length > 0) @@ -68,13 +68,13 @@ public class Client HelloPrx batchOneway = HelloPrxHelper.uncheckedCast(twoway.ice_batchOneway()); HelloPrx datagram = HelloPrxHelper.uncheckedCast(twoway.ice_datagram()); HelloPrx batchDatagram = HelloPrxHelper.uncheckedCast(twoway.ice_batchDatagram()); - + bool secure = false; - + menu(); - + string line = null; - do + do { try { @@ -121,7 +121,8 @@ public class Client } else if(line.Equals("f")) { - communicator().flushBatchRequests(); + batchOneway.ice_flushBatchRequests(); + batchDatagram.ice_flushBatchRequests(); } else if(_haveSSL && line.Equals("S")) { @@ -132,7 +133,7 @@ public class Client batchOneway = HelloPrxHelper.uncheckedCast(batchOneway.ice_secure(secure)); datagram = HelloPrxHelper.uncheckedCast(datagram.ice_secure(secure)); batchDatagram = HelloPrxHelper.uncheckedCast(batchDatagram.ice_secure(secure)); - + if(secure) { Console.WriteLine("secure mode is now on"); @@ -162,7 +163,7 @@ public class Client } } while (!line.Equals("x")); - + return 0; } |