init
This commit is contained in:
23
DouyinApi.EventBus/Eventbus/IIntegrationEventHandler.cs
Normal file
23
DouyinApi.EventBus/Eventbus/IIntegrationEventHandler.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DouyinApi.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
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user