Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Web / PUSG.Web / Events / IEventService.cs
blob: 11e2c863edc12504d5bb7c5dc505dbcf3ccf0a31 (plain) (blame)
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);
    }
}