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.

47 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace Mesnac.EventService
{
/// <summary>
/// 设计时事件订阅信息
/// </summary>
public class DesignEvent
{
public string GUID { get; set; }
public string Name { get; set; }
public string Remark { get; set; }
}
/// <summary>
/// 设计时可用订阅事件
/// </summary>
public class DesignEventTree
{
public List<DesignEventTree> Children { get; set; }
public List<DesignEvent> EventNode { get; set; }
}
/// <summary>
/// 运行时数据传输值
/// </summary>
public class RuntimeEventArgs : EventArgs
{
public string GUID { get; set; }
public object DATA { get; set; }
}
public delegate void RuntimeEventHandler(object sender, RuntimeEventArgs e);
/// <summary>
/// 事件处理接口
/// </summary>
public interface IDesignService
{
void IniDesignEvent(string path);
DesignEventTree DesignEventTree { get; set; }
event RuntimeEventHandler RuntimeEvent;
}
}