diff options
Diffstat (limited to 'csharp/test/Ice/dictMapping/Client.cs')
-rw-r--r-- | csharp/test/Ice/dictMapping/Client.cs | 36 |
1 files changed, 5 insertions, 31 deletions
diff --git a/csharp/test/Ice/dictMapping/Client.cs b/csharp/test/Ice/dictMapping/Client.cs index f4efb252f54..c2f8183a9f3 100644 --- a/csharp/test/Ice/dictMapping/Client.cs +++ b/csharp/test/Ice/dictMapping/Client.cs @@ -17,11 +17,11 @@ 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.MyClassPrx myClass = AllTests.allTests(communicator, false); + Test.MyClassPrx myClass = AllTests.allTests(this, false); Console.Out.Write("shutting down server... "); Console.Out.Flush(); @@ -32,33 +32,7 @@ public class Client public static int Main(string[] args) { - int status = 0; - Ice.Communicator communicator = null; - - try - { - communicator = Ice.Util.initialize(ref args); - status = run(args, communicator); - } - catch(System.Exception ex) - { - Console.Error.WriteLine(ex); - status = 1; - } - - if(communicator != null) - { - try - { - communicator.destroy(); - } - catch(Ice.LocalException ex) - { - Console.Error.WriteLine(ex); - status = 1; - } - } - - return status; + Client app = new Client(); + return app.runmain(args); } } |