summaryrefslogtreecommitdiff
path: root/cs/demo/Ice/nested/Server.cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs/demo/Ice/nested/Server.cs')
-rwxr-xr-xcs/demo/Ice/nested/Server.cs16
1 files changed, 14 insertions, 2 deletions
diff --git a/cs/demo/Ice/nested/Server.cs b/cs/demo/Ice/nested/Server.cs
index cbd48ad0ec9..04a0a443a23 100755
--- a/cs/demo/Ice/nested/Server.cs
+++ b/cs/demo/Ice/nested/Server.cs
@@ -7,11 +7,23 @@
//
// **********************************************************************
-public class Server
+using Demo;
+
+public class Server : Ice.Application
{
+ public override int run(string[] args)
+ {
+ Ice.ObjectAdapter adapter = communicator().createObjectAdapter("Nested.Server");
+ NestedPrx self = NestedPrxHelper.uncheckedCast(adapter.createProxy(Ice.Util.stringToIdentity("nestedServer")));
+ adapter.add(new NestedI(self), Ice.Util.stringToIdentity("nestedServer"));
+ adapter.activate();
+ communicator().waitForShutdown();
+ return 0;
+ }
+
public static void Main(string[] args)
{
- NestedServer app = new NestedServer();
+ Server app = new Server();
int status = app.main(args, "config");
System.Environment.Exit(status);
}