山东雷驰
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
558 B

3 months ago
using System.Threading;
using System.Threading.Tasks;
namespace Kean.Domain
{
/// <summary>
/// 事件处理程序
/// </summary>
/// <typeparam name="T">事件模型</typeparam>
public abstract class EventHandler<T> : IEventHandler<T> where T : class, IEvent
{
/*
* Kean.Domain.IEventHandler<T>.Handle
* MediatR.INotificationHandler<T>.Handle
*/
public abstract Task Handle(T @event, CancellationToken cancellationToken);
}
}