feat: add event bus

This commit is contained in:
k0t9i
2023-01-31 14:45:40 +04:00
parent ea6778a3bd
commit b8b92b7cf8
14 changed files with 240 additions and 48 deletions

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client.Domain.Events
{
public interface EventBusInterface
{
void Subscrbe<T>(EventHandlerInterface<T> handler) where T : EventInterface;
void Unsubscrbe<T>(EventHandlerInterface<T> handler) where T : EventInterface;
void Publish<T>(T @event) where T : EventInterface;
}
}