using iWareLog.ORM; using iWareLog.LOG.Entity; using iWareLog.LOG.Dao; using iWareCommon.Common.Service; namespace iWareLog.LOG.Service { public class ReceiveMsgLogService : CommonService { private static object Lock = new object(); private ReceiveMsgLogService() : base(ReceiveMsgLogDao.GetInstance()) { } private static ReceiveMsgLogService Instance = null; /// /// 获取单例的方法 /// /// log服务的单例实体 public static ReceiveMsgLogService GetInstance() { if (Instance == null) { lock (Lock) { if (Instance == null) { Instance = new ReceiveMsgLogService(); } } } return Instance; } } }