diff options
author | Michi Henning <michi@zeroc.com> | 2004-07-14 05:38:48 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-07-14 05:38:48 +0000 |
commit | 9ee36e5afbc59b4c610935de99cb98232152a6e7 (patch) | |
tree | 86341cbe50b32ca088ca91ca64b434e117a80264 /cs/demo/Ice/throughput/Server.cs | |
parent | Fixed a few formatting issues. (diff) | |
download | ice-9ee36e5afbc59b4c610935de99cb98232152a6e7.tar.bz2 ice-9ee36e5afbc59b4c610935de99cb98232152a6e7.tar.xz ice-9ee36e5afbc59b4c610935de99cb98232152a6e7.zip |
Removed DOS line endings.
Added work-around for Mono 1.0 WaitOne() bug under Linux.
Diffstat (limited to 'cs/demo/Ice/throughput/Server.cs')
-rwxr-xr-x | cs/demo/Ice/throughput/Server.cs | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/cs/demo/Ice/throughput/Server.cs b/cs/demo/Ice/throughput/Server.cs index 74100665a87..43382913d4a 100755 --- a/cs/demo/Ice/throughput/Server.cs +++ b/cs/demo/Ice/throughput/Server.cs @@ -7,44 +7,44 @@ // // ********************************************************************** -
-public class Server
-{
- private static int run(string[] args, Ice.Communicator communicator)
- {
- Ice.ObjectAdapter adapter = communicator.createObjectAdapter("Throughput");
- Ice.Object obj = new ThroughputI();
- adapter.add(obj, Ice.Util.stringToIdentity("throughput"));
- adapter.activate();
- communicator.waitForShutdown();
- return 0;
- }
-
- public static void Main(string[] args)
- {
- int status = 0;
- Ice.Communicator communicator = null;
-
- try
- {
- Ice.Properties properties = Ice.Util.createProperties(ref args);
- properties.load("config");
- communicator = Ice.Util.initializeWithProperties(ref args, properties);
- status = run(args, communicator);
- }
- catch(System.Exception ex)
- {
- System.Console.Error.WriteLine(ex);
- status = 1;
- }
- finally
- {
- if(communicator != null)
- {
- communicator.destroy();
- }
- }
-
- System.Environment.Exit(status);
- }
-}
+ +public class Server +{ + private static int run(string[] args, Ice.Communicator communicator) + { + Ice.ObjectAdapter adapter = communicator.createObjectAdapter("Throughput"); + Ice.Object obj = new ThroughputI(); + adapter.add(obj, Ice.Util.stringToIdentity("throughput")); + adapter.activate(); + communicator.waitForShutdown(); + return 0; + } + + public static void Main(string[] args) + { + int status = 0; + Ice.Communicator communicator = null; + + try + { + Ice.Properties properties = Ice.Util.createProperties(ref args); + properties.load("config"); + communicator = Ice.Util.initializeWithProperties(ref args, properties); + status = run(args, communicator); + } + catch(System.Exception ex) + { + System.Console.Error.WriteLine(ex); + status = 1; + } + finally + { + if(communicator != null) + { + communicator.destroy(); + } + } + + System.Environment.Exit(status); + } +} |