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