StartHelper.cs 566 B

123456789101112131415161718192021
  1. namespace MySystem
  2. {
  3. public class StartHelper
  4. {
  5. public readonly static StartHelper Instance = new StartHelper();
  6. private StartHelper()
  7. {
  8. }
  9. public void Start()//启动
  10. {
  11. int Environment = Library.ConfigurationManager.EnvironmentFlag; //运行环境(1-开发环境,2-生产环境)
  12. if(Environment == 2)
  13. {
  14. // DefaultHelper.Instance.Start(); //队列程序
  15. // ......其他队列程序
  16. }
  17. }
  18. }
  19. }