You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Alarm/PmtAlarm/ClearCacheAction.cs

33 lines
864 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data;
using ICSharpCode.Core;
using Mesnac.Action.Base;
namespace Mesnac.Action.ChemicalWeighing.Alarm.PmtAlarm
{
/// <summary>
/// 清空报警参数缓存业务
/// </summary>
public class ClearCacheAction : ChemicalWeighingAction, IAction
{
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime); //必须要调用的
ICSharpCode.Core.LoggingService<ClearCacheAction>.Debug("报警参数-清空缓存...");
Cache.CacheHelper.ClearAlarmInfo();
#region 记录操作日志
string logContent = String.Format("清空报警参数缓存");
base.DBLog(logContent);
#endregion
}
}
}