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
.Diagnostics
;
12 using System
.Reflection
;
14 [assembly
: CLSCompliant(true)]
16 [assembly
: AssemblyTitle("IceTest")]
17 [assembly
: AssemblyDescription("Ice test")]
18 [assembly
: AssemblyCompany("ZeroC, Inc.")]
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"));
31 communicator().waitForShutdown();
36 public static int Main(string[] args
)
39 Debug
.Listeners
.Add(new ConsoleTraceListener());
43 return app
.main(args
);