diff options
Diffstat (limited to 'cs/test/Ice/application/Client.cs')
-rw-r--r-- | cs/test/Ice/application/Client.cs | 66 |
1 files changed, 38 insertions, 28 deletions
diff --git a/cs/test/Ice/application/Client.cs b/cs/test/Ice/application/Client.cs index 982f4b079e7..aa3728a67cc 100644 --- a/cs/test/Ice/application/Client.cs +++ b/cs/test/Ice/application/Client.cs @@ -9,51 +9,61 @@ using System; using System.Diagnostics; +using System.Reflection; -public class Client : Ice.Application +[assembly: CLSCompliant(true)] + +[assembly: AssemblyTitle("IceTest")] +[assembly: AssemblyDescription("Ice test")] +[assembly: AssemblyCompany("ZeroC, Inc.")] + +public class Client { - public override void interruptCallback(int sig) + public class App : Ice.Application { - Console.WriteLine("handling signal " + sig); - } + public override void interruptCallback(int sig) + { + Console.WriteLine("handling signal " + sig); + } - public override int run(string[] args) - { - ignoreInterrupt(); - Console.WriteLine("Ignore CTRL+C and the like for 5 seconds (try it!)"); - System.Threading.Thread.Sleep(5 * 1000); + public override int run(string[] args) + { + ignoreInterrupt(); + Console.WriteLine("Ignore CTRL+C and the like for 5 seconds (try it!)"); + System.Threading.Thread.Sleep(5 * 1000); - callbackOnInterrupt(); + callbackOnInterrupt(); - holdInterrupt(); - Console.WriteLine("Hold CTRL+C and the like for 5 seconds (try it!)"); - System.Threading.Thread.Sleep(5 * 1000); + holdInterrupt(); + Console.WriteLine("Hold CTRL+C and the like for 5 seconds (try it!)"); + System.Threading.Thread.Sleep(5 * 1000); - releaseInterrupt(); - Console.WriteLine("Release CTRL+C (any held signals should be released)"); - System.Threading.Thread.Sleep(5 * 1000); + releaseInterrupt(); + Console.WriteLine("Release CTRL+C (any held signals should be released)"); + System.Threading.Thread.Sleep(5 * 1000); - holdInterrupt(); - Console.WriteLine("Hold CTRL+C and the like for 5 seconds (try it!)"); - System.Threading.Thread.Sleep(5 * 1000); + holdInterrupt(); + Console.WriteLine("Hold CTRL+C and the like for 5 seconds (try it!)"); + System.Threading.Thread.Sleep(5 * 1000); - callbackOnInterrupt(); - Console.WriteLine("Release CTRL+C (any held signals should be released)"); - System.Threading.Thread.Sleep(5 * 1000); + callbackOnInterrupt(); + Console.WriteLine("Release CTRL+C (any held signals should be released)"); + System.Threading.Thread.Sleep(5 * 1000); - shutdownOnInterrupt(); - Console.WriteLine("Test shutdown on destroy. Press CTRL+C to shutdown & terminate"); - communicator().waitForShutdown(); + shutdownOnInterrupt(); + Console.WriteLine("Test shutdown on destroy. Press CTRL+C to shutdown & terminate"); + communicator().waitForShutdown(); - Console.WriteLine("ok"); - return 0; + Console.WriteLine("ok"); + return 0; + } } public static void Main(string[] args) { Debug.Listeners.Add(new ConsoleTraceListener()); - Client app = new Client(); + App app = new App(); int status = app.main(args); if(status != 0) { |