diff options
Diffstat (limited to 'csharp/test/Ice/enums/Client.cs')
-rw-r--r-- | csharp/test/Ice/enums/Client.cs | 42 |
1 files changed, 5 insertions, 37 deletions
diff --git a/csharp/test/Ice/enums/Client.cs b/csharp/test/Ice/enums/Client.cs index 372d232cdea..db7ad3f9720 100644 --- a/csharp/test/Ice/enums/Client.cs +++ b/csharp/test/Ice/enums/Client.cs @@ -17,50 +17,18 @@ using System.Reflection; [assembly: AssemblyDescription("Ice test")] [assembly: AssemblyCompany("ZeroC, Inc.")] -public class Client +public class Client : TestCommon.Application { - private static int run(string[] args, Ice.Communicator communicator) + public override int run(string[] args) { - Test.TestIntfPrx proxy = AllTests.allTests(communicator); + Test.TestIntfPrx proxy = AllTests.allTests(this); proxy.shutdown(); return 0; } public static int Main(string[] args) { - int status = 0; - Ice.Communicator communicator = null; - -#if !COMPACT && !UNITY - Debug.Listeners.Add(new ConsoleTraceListener()); -#endif - - try - { - Ice.InitializationData initData = new Ice.InitializationData(); - initData.properties = Ice.Util.createProperties(ref args); - communicator = Ice.Util.initialize(ref args, initData); - status = run(args, communicator); - } - catch(System.Exception ex) - { - System.Console.Error.WriteLine(ex); - status = 1; - } - - if(communicator != null) - { - try - { - communicator.destroy(); - } - catch(Ice.LocalException ex) - { - System.Console.Error.WriteLine(ex); - status = 1; - } - } - - return status; + Client app = new Client(); + return app.runmain(args); } } |