using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VIZ.Framework.Core
{
    /// <summary>
    /// 监视器触发器
    /// </summary>
    public interface IMonitorTrigger
    {
        /// <summary>
        /// 是否可以执行
        /// </summary>
        /// <param name="model">监视器模型</param>
        /// <returns>是否可以执行</returns>
        bool CanExecute(MonitorInfolBase model);

        /// <summary>
        /// 执行
        /// </summary>
        /// <param name="model">模型</param>
        void Execute(MonitorInfolBase model);
    }
}
