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.
23 lines
567 B
23 lines
567 B
using System.Threading.Tasks;
|
|
|
|
namespace Blog.Core.EventBus
|
|
{
|
|
/// <summary>
|
|
/// 集成事件处理程序
|
|
/// 泛型接口
|
|
/// </summary>
|
|
/// <typeparam name="TIntegrationEvent"></typeparam>
|
|
public interface IIntegrationEventHandler<in TIntegrationEvent> : IIntegrationEventHandler
|
|
where TIntegrationEvent : IntegrationEvent
|
|
{
|
|
Task Handle(TIntegrationEvent @event);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 集成事件处理程序
|
|
/// 基 接口
|
|
/// </summary>
|
|
public interface IIntegrationEventHandler
|
|
{
|
|
}
|
|
}
|
|
|