初始化上传
This commit is contained in:
30
常用工具集/Utility/EventBus/IEventHandler.cs
Normal file
30
常用工具集/Utility/EventBus/IEventHandler.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
/****************************************************************
|
||||
** 文件名: IEventHandler.cs
|
||||
** 主要类: IEventHandler
|
||||
** Copyright (c) 章为忠
|
||||
** 创建人:
|
||||
** 日 期: 2017.3.10
|
||||
** 修改人:
|
||||
** 日 期:
|
||||
** 修改内容:
|
||||
** 描 述:
|
||||
** 版 本:
|
||||
** 备 注:
|
||||
****************************************************************/
|
||||
|
||||
namespace Weiz.EventBus.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// 事件处理接口
|
||||
/// </summary>
|
||||
/// <typeparam name="TEvent">继承IEvent对象的事件源对象</typeparam>
|
||||
public interface IEventHandler<TEvent> where TEvent : IEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// 处理程序
|
||||
/// </summary>
|
||||
/// <param name="evt"></param>
|
||||
void Handle(TEvent evt);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user