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