Bundle.cs 917 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using AppLibs.Host;
  6. namespace Tps_LQ_Transmitter
  7. {
  8. public class Bundle : BaseBundle
  9. {
  10. public static IBundle bundle;
  11. public static IHost host;
  12. public static AppLibs.Host.ILog log;
  13. public Bundle()
  14. {
  15. this.releaseTime = "2021-07-29";
  16. this.bundleName = "林泉发射机测试"; //与配置文件<Bundle Name="林泉发射机测试">保持一致
  17. }
  18. public override bool Start(IHost host, IBundle bundle)
  19. {
  20. Bundle.bundle = bundle;
  21. Bundle.host = host;
  22. log = host.GetFirstOrDefaultService<AppLibs.Host.ILog>();
  23. return base.Start(host, bundle);
  24. }
  25. public override bool Stop(IHost host, IBundle bundle)
  26. {
  27. return base.Stop(host, bundle);
  28. }
  29. }
  30. }