L2Bot2.0/Client/Domain/Events/EventBusInterface.cs
2023-01-31 14:45:40 +04:00

16 lines
438 B
C#

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;
}
}