diff options
Diffstat (limited to 'csharp/test/IceSSL/configuration/Client.cs')
-rw-r--r-- | csharp/test/IceSSL/configuration/Client.cs | 40 |
1 files changed, 7 insertions, 33 deletions
diff --git a/csharp/test/IceSSL/configuration/Client.cs b/csharp/test/IceSSL/configuration/Client.cs index 6154fd3dc5d..3d64e6c7b1b 100644 --- a/csharp/test/IceSSL/configuration/Client.cs +++ b/csharp/test/IceSSL/configuration/Client.cs @@ -16,9 +16,9 @@ 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) { if(args.Length < 1) { @@ -27,41 +27,15 @@ public class Client } Test.ServerFactoryPrx factory; - factory = AllTests.allTests(communicator, args[0]); + factory = AllTests.allTests(this, args[0]); factory.shutdown(); - + return 0; } - + 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(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); } } |