Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Web / PUSG.Web / Events / IEventService.cs
diff options
context:
space:
mode:
1 files changed, 15 insertions, 0 deletions
-rw-r--r--src/Web/PUSG.Web/Events/IEventService.cs15
diff --git a/src/Web/PUSG.Web/Events/IEventService.cs b/src/Web/PUSG.Web/Events/IEventService.cs
new file mode 100644
index 0000000..11e2c86
--- /dev/null
+++ b/src/Web/PUSG.Web/Events/IEventService.cs
@@ -0,0 +1,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);
+ }
+}