Agv_Biz.cs 952 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace NX_WcsBiz.WcsBusiness
  7. {
  8. public class Agv_Biz
  9. {
  10. #region 单例模式
  11. /// <summary>
  12. /// 单例模式对象
  13. /// </summary>
  14. private static Agv_Biz _instance = null;
  15. private static readonly object lockObj = new object();
  16. /// <summary>
  17. /// 单例模式方法
  18. /// </summary>
  19. public static Agv_Biz Instance
  20. {
  21. get
  22. {
  23. if (_instance == null)
  24. {
  25. lock (lockObj)
  26. {
  27. if (_instance == null)
  28. {
  29. _instance = new Agv_Biz();
  30. }
  31. }
  32. }
  33. return _instance;
  34. }
  35. }
  36. #endregion
  37. }
  38. }