Files
MRCC/launcher/PCL-CE/PCL.Core/App/EventBus/IEventHandler.cs
T

14 lines
426 B
C#
Raw Normal View History

using System;
using System.Threading.Tasks;
namespace PCL.Core.App.EventBus;
public interface IEventHandler<in TEventData> : IDisposable
where TEventData : EventDataBase
{
/// <summary>
/// Handle a event with the data, and the event is published by a publisher.
/// </summary>
/// <param name="eventData">The data that published by a publisher.</param>
Task HandleEventAsync(TEventData eventData);
}