ServiceMBIClientHandler.cs 826 B

12345678910111213141516171819202122232425262728293031
  1. /* ==============================================================================
  2. * 功能描述:ServiceMBIClientHandler
  3. * 创 建 者:Garrett
  4. * 创建日期:2019/4/12 15:08:46
  5. * ==============================================================================*/
  6. using System;
  7. using System.Windows.Forms;
  8. namespace Client.Start
  9. {
  10. /// <summary>
  11. /// ServiceMBIClientHandler
  12. /// </summary>
  13. public class ServiceMBIClientHandler
  14. {
  15. private static ClientApp m_Client;
  16. public static void Start()
  17. {
  18. m_Client = new ClientApp("172.16.0.183", 6666, "E:\\", 3, new RevitCmdExecutor(), 5);
  19. m_Client.Start();
  20. //Console.ReadKey();
  21. }
  22. public static void Stop()
  23. {
  24. m_Client?.Close();
  25. }
  26. }
  27. }