summaryrefslogtreecommitdiff
path: root/cs/demo/IceGrid/icebox/Client.cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs/demo/IceGrid/icebox/Client.cs')
-rw-r--r--cs/demo/IceGrid/icebox/Client.cs42
1 files changed, 26 insertions, 16 deletions
diff --git a/cs/demo/IceGrid/icebox/Client.cs b/cs/demo/IceGrid/icebox/Client.cs
index 790a2092c8d..53c695150af 100644
--- a/cs/demo/IceGrid/icebox/Client.cs
+++ b/cs/demo/IceGrid/icebox/Client.cs
@@ -7,34 +7,44 @@
//
// **********************************************************************
-using System;
using Demo;
+using System;
+using System.Reflection;
+
+[assembly: CLSCompliant(true)]
+
+[assembly: AssemblyTitle("IceGridIceBoxClient")]
+[assembly: AssemblyDescription("IceGrid icebox demo client")]
+[assembly: AssemblyCompany("ZeroC, Inc.")]
-public class Client : Ice.Application
+public class Client
{
- public override int run(string[] args)
+ public class App : Ice.Application
{
- if(args.Length > 0)
+ public override int run(string[] args)
{
- Console.Error.WriteLine(appName() + ": too many arguments");
- return 1;
- }
+ if(args.Length > 0)
+ {
+ Console.Error.WriteLine(appName() + ": too many arguments");
+ return 1;
+ }
- HelloPrx hello = HelloPrxHelper.uncheckedCast(communicator().propertyToProxy("Hello.Proxy"));
- if(hello == null)
- {
- Console.Error.WriteLine("Hello.Proxy not found");
- return 1;
- }
+ HelloPrx hello = HelloPrxHelper.uncheckedCast(communicator().propertyToProxy("Hello.Proxy"));
+ if(hello == null)
+ {
+ Console.Error.WriteLine("Hello.Proxy not found");
+ return 1;
+ }
- hello.sayHello();
+ hello.sayHello();
- return 0;
+ return 0;
+ }
}
public static void Main(string[] args)
{
- Client app = new Client();
+ App app = new App();
int status = app.main(args, "config.client");
if(status != 0)
{