using iWareLog.ORM;
|
using iWareLog.LOG.Entity;
|
using iWareLog.LOG.Dao;
|
using iWareCommon.Common.Service;
|
|
namespace iWareLog.LOG.Service
|
{
|
public class AlertService : CommonService<AlertEntity, DEVAlert, DbModelLog>
|
{
|
private static object Lock = new object();
|
|
private AlertService() : base(AlertDao.GetInstance()) { }
|
|
private static AlertService Instance = null;
|
|
/// <summary>
|
/// 获取单例的方法
|
/// </summary>
|
/// <returns>log服务的单例实体</returns>
|
public static AlertService GetInstance()
|
{
|
|
if (Instance == null)
|
{
|
lock (Lock)
|
{
|
if (Instance == null)
|
{
|
Instance = new AlertService();
|
}
|
}
|
}
|
return Instance;
|
}
|
|
|
|
|
}
|
}
|