diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-11-23 13:28:08 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-11-23 13:28:08 +0100 |
commit | 2c578015edcb36cdc0acd0227295de1dcca1b995 (patch) | |
tree | e163980b5dabb43a40089a29fdf8ff47a3e07f1c /cs/demo/Ice/async/Client.cs | |
parent | no longer generating inspect method for each Ruby exception (diff) | |
download | ice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.bz2 ice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.xz ice-2c578015edcb36cdc0acd0227295de1dcca1b995.zip |
New AMI mapping
Diffstat (limited to 'cs/demo/Ice/async/Client.cs')
-rw-r--r-- | cs/demo/Ice/async/Client.cs | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/cs/demo/Ice/async/Client.cs b/cs/demo/Ice/async/Client.cs index 5edb2cb2c26..331c5b04a51 100644 --- a/cs/demo/Ice/async/Client.cs +++ b/cs/demo/Ice/async/Client.cs @@ -21,23 +21,20 @@ public class Client { public class App : Ice.Application { - public class AMI_Hello_sayHelloI : AMI_Hello_sayHello + public void success() { - public override void ice_response() + } + + public void exception(Ice.Exception ex) + { + if(ex is RequestCanceledException) { + Console.Error.WriteLine("RequestCanceledException"); } - - public override void ice_exception(Ice.Exception ex) + else { - if(ex is RequestCanceledException) - { - Console.Error.WriteLine("RequestCanceledException"); - } - else - { - Console.Error.WriteLine("sayHello AMI call failed:"); - Console.Error.WriteLine(ex); - } + Console.Error.WriteLine("sayHello AMI call failed:"); + Console.Error.WriteLine(ex); } } @@ -87,7 +84,7 @@ public class Client } else if(line.Equals("d")) { - hello.sayHello_async(new AMI_Hello_sayHelloI(), 5000); + hello.begin_sayHello(5000).whenCompleted(success, exception); } else if(line.Equals("s")) { |