using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NX_WcsBiz.WcsBusiness { public class Agv_Biz { #region 单例模式 /// /// 单例模式对象 /// private static Agv_Biz _instance = null; private static readonly object lockObj = new object(); /// /// 单例模式方法 /// public static Agv_Biz Instance { get { if (_instance == null) { lock (lockObj) { if (_instance == null) { _instance = new Agv_Biz(); } } } return _instance; } } #endregion } }