ICE 3.4.2
[php5-ice-freebsdport.git] / cs / test / Glacier2 / sessionHelper / Server.cs
blob69c3da8fa099b0bd7c03358687afa637d51ebc85
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 using System;
11 using System.Diagnostics;
12 using System.Reflection;
14 [assembly: CLSCompliant(true)]
16 [assembly: AssemblyTitle("IceTest")]
17 [assembly: AssemblyDescription("Ice test")]
18 [assembly: AssemblyCompany("ZeroC, Inc.")]
20 public class Server
22 public class App : Ice.Application
24 public override int run(string[] args)
26 communicator().getProperties().setProperty("CallbackAdapter.Endpoints", "tcp -p 12010");
27 Ice.ObjectAdapter adapter = communicator().createObjectAdapter("CallbackAdapter");
28 adapter.add(new CallbackI(),
29 communicator().stringToIdentity("callback"));
30 adapter.activate();
31 communicator().waitForShutdown();
32 return 0;
36 public static int Main(string[] args)
38 #if !COMPACT
39 Debug.Listeners.Add(new ConsoleTraceListener());
40 #endif
42 App app = new App();
43 return app.main(args);