1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
11 using System
.Reflection
;
13 [assembly
: CLSCompliant(true)]
15 [assembly
: AssemblyTitle("IceGridSimpleServer")]
16 [assembly
: AssemblyDescription("IceGrid simple demo server")]
17 [assembly
: AssemblyCompany("ZeroC, Inc.")]
21 public class App
: Ice
.Application
23 public override int run(string[] args
)
27 System
.Console
.Error
.WriteLine(appName() + ": too many arguments");
31 Ice
.ObjectAdapter adapter
= communicator().createObjectAdapter("Hello");
32 Ice
.Properties properties
= communicator().getProperties();
33 Ice
.Identity id
= communicator().stringToIdentity(properties
.getProperty("Identity"));
34 adapter
.add(new HelloI(properties
.getProperty("Ice.ProgramName")), id
);
36 communicator().waitForShutdown();
41 static public int Main(string[] args
)
44 return app
.main(args
);