summaryrefslogtreecommitdiff
path: root/cs/demo/Ice/nested/Server.cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs/demo/Ice/nested/Server.cs')
-rw-r--r--cs/demo/Ice/nested/Server.cs39
1 files changed, 25 insertions, 14 deletions
diff --git a/cs/demo/Ice/nested/Server.cs b/cs/demo/Ice/nested/Server.cs
index 37282ffdda0..33f1f1013bd 100644
--- a/cs/demo/Ice/nested/Server.cs
+++ b/cs/demo/Ice/nested/Server.cs
@@ -8,29 +8,40 @@
// **********************************************************************
using Demo;
+using System;
+using System.Reflection;
-public class Server : Ice.Application
+[assembly: CLSCompliant(true)]
+
+[assembly: AssemblyTitle("IceNestedServer")]
+[assembly: AssemblyDescription("Ice nested demo server")]
+[assembly: AssemblyCompany("ZeroC, Inc.")]
+
+public class Server
{
- public override int run(string[] args)
+ public class App : Ice.Application
{
- if(args.Length > 0)
+ public override int run(string[] args)
{
- System.Console.Error.WriteLine(appName() + ": too many arguments");
- return 1;
- }
+ if(args.Length > 0)
+ {
+ System.Console.Error.WriteLine(appName() + ": too many arguments");
+ return 1;
+ }
- Ice.ObjectAdapter adapter = communicator().createObjectAdapter("Nested.Server");
- NestedPrx self =
- NestedPrxHelper.uncheckedCast(adapter.createProxy(communicator().stringToIdentity("nestedServer")));
- adapter.add(new NestedI(self), communicator().stringToIdentity("nestedServer"));
- adapter.activate();
- communicator().waitForShutdown();
- return 0;
+ Ice.ObjectAdapter adapter = communicator().createObjectAdapter("Nested.Server");
+ NestedPrx self =
+ NestedPrxHelper.uncheckedCast(adapter.createProxy(communicator().stringToIdentity("nestedServer")));
+ adapter.add(new NestedI(self), communicator().stringToIdentity("nestedServer"));
+ adapter.activate();
+ communicator().waitForShutdown();
+ return 0;
+ }
}
public static void Main(string[] args)
{
- Server app = new Server();
+ App app = new App();
int status = app.main(args, "config.server");
if(status != 0)
{