feat: add event bus
This commit is contained in:
17
Client/Domain/Events/EventHandlerInterface.cs
Normal file
17
Client/Domain/Events/EventHandlerInterface.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Client.Domain.Events
|
||||
{
|
||||
public interface EventHandlerInterface
|
||||
{
|
||||
}
|
||||
|
||||
public interface EventHandlerInterface<T> : EventHandlerInterface where T : EventInterface
|
||||
{
|
||||
void Handle(T @event);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user