summaryrefslogtreecommitdiff
path: root/cs/demo/IceGrid/simple/Client.cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs/demo/IceGrid/simple/Client.cs')
-rw-r--r--cs/demo/IceGrid/simple/Client.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/cs/demo/IceGrid/simple/Client.cs b/cs/demo/IceGrid/simple/Client.cs
index ae4f0f43ad6..4b651059b38 100644
--- a/cs/demo/IceGrid/simple/Client.cs
+++ b/cs/demo/IceGrid/simple/Client.cs
@@ -25,16 +25,16 @@ public class Client : Ice.Application
public override int run(string[] args)
{
HelloPrx hello = null;
- try
- {
- hello = HelloPrxHelper.checkedCast(communicator().stringToProxy("hello"));
- }
- catch(Ice.NotRegisteredException)
- {
- IceGrid.QueryPrx query =
- IceGrid.QueryPrxHelper.checkedCast(communicator().stringToProxy("DemoIceGrid/Query"));
- hello = HelloPrxHelper.checkedCast(query.findObjectByType("::Demo::Hello"));
- }
+ try
+ {
+ hello = HelloPrxHelper.checkedCast(communicator().stringToProxy("hello"));
+ }
+ catch(Ice.NotRegisteredException)
+ {
+ IceGrid.QueryPrx query =
+ IceGrid.QueryPrxHelper.checkedCast(communicator().stringToProxy("DemoIceGrid/Query"));
+ hello = HelloPrxHelper.checkedCast(query.findObjectByType("::Demo::Hello"));
+ }
if(hello == null)
{
Console.WriteLine("couldn't find a `::Demo::Hello' object");