1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
using PUSG.Web.Events.Api; using System.Collections.Generic; using System.Threading.Tasks; namespace PUSG.Web.Events { public interface IEventService { IEnumerable<IEventHandler> EventHandlers { get; } void Subscribe(IEventHandler eventHandler); Task Publish(string eventName, params object[] args); } }