using MediatR; using System.Threading; using System.Threading.Tasks; namespace Kean.Domain { /// /// 表示事件处理程序 /// /// 事件模型 internal interface IEventHandler : INotificationHandler where T : class, IEvent { /// /// 处理事件 /// /// 事件 /// 取消标记 new Task Handle(T @event, CancellationToken cancellationToken); } }