diff options
author | Jose <jose@zeroc.com> | 2016-05-11 16:51:13 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-05-11 16:51:13 +0200 |
commit | 20ead35bcd15c258b00da6b1a16d26107f8dea8b (patch) | |
tree | 0aa99a82b9d56383c76c372fc1050dfd5493b4e9 /csharp/test/Ice/faultTolerance/Server.cs | |
parent | Fixed make install issue (diff) | |
download | ice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.tar.bz2 ice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.tar.xz ice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.zip |
CSharp mapping cleanup
- Remove code support for old ussuported frameworks (SILVERLIGHT, COMPACT, MONO)
- Remove code support for deprecated collection mappings clr:collection
Diffstat (limited to 'csharp/test/Ice/faultTolerance/Server.cs')
-rw-r--r-- | csharp/test/Ice/faultTolerance/Server.cs | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/csharp/test/Ice/faultTolerance/Server.cs b/csharp/test/Ice/faultTolerance/Server.cs index 2df6d5133a2..97f0e735174 100644 --- a/csharp/test/Ice/faultTolerance/Server.cs +++ b/csharp/test/Ice/faultTolerance/Server.cs @@ -8,7 +8,6 @@ // ********************************************************************** using System; -using System.Diagnostics; using System.Reflection; [assembly: CLSCompliant(true)] @@ -21,7 +20,7 @@ public class Server { private static void usage() { - System.Console.Error.WriteLine("Usage: Server port"); + Console.Error.WriteLine("Usage: Server port"); } private static int run(string[] args, Ice.Communicator communicator) @@ -31,25 +30,25 @@ public class Server { if(args[i][0] == '-') { - System.Console.Error.WriteLine("Server: unknown option `" + args[i] + "'"); + Console.Error.WriteLine("Server: unknown option `" + args[i] + "'"); usage(); return 1; } if(port != 0) { - System.Console.Error.WriteLine("Server: only one port can be specified"); + Console.Error.WriteLine("Server: only one port can be specified"); usage(); return 1; } try { - port = System.Int32.Parse(args[i]); + port = int.Parse(args[i]); } - catch(System.FormatException) + catch(FormatException) { - System.Console.Error.WriteLine("Server: invalid port"); + Console.Error.WriteLine("Server: invalid port"); usage(); return 1; } @@ -57,7 +56,7 @@ public class Server if(port <= 0) { - System.Console.Error.WriteLine("Server: no port specified"); + Console.Error.WriteLine("Server: no port specified"); usage(); return 1; } @@ -90,9 +89,9 @@ public class Server communicator = Ice.Util.initialize(ref args, initData); status = run(args, communicator); } - catch(System.Exception ex) + catch(Exception ex) { - System.Console.Error.WriteLine(ex); + Console.Error.WriteLine(ex); status = 1; } @@ -104,7 +103,7 @@ public class Server } catch(Ice.LocalException ex) { - System.Console.Error.WriteLine(ex); + Console.Error.WriteLine(ex); status = 1; } } |