ExitpProcessHelper.cs 506 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.ServiceModel;
  5. using System.Threading;
  6. namespace MonoTests.Features.Contracts
  7. {
  8. [ServiceContract (Namespace = "http://MonoTests.Features.Contracts")]
  9. public interface IExitProcessHelper
  10. {
  11. [OperationContract(IsOneWay=true)]
  12. void ExitProcess (int code);
  13. }
  14. public class ExitProcessHelperServer : IExitProcessHelper
  15. {
  16. public void ExitProcess (int code) {
  17. Environment.Exit (code);
  18. }
  19. }
  20. }