using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hncore.Infrastructure.Events { public interface IEventBus { void Register(IEventHandler eventHandler); void Register(Action action) where TEventData : IEventData; void UnRegister(Type eventHandler); // void Trigger(TEventData eventData) where TEventData : IEventData; } }