2 Star 0 Fork 0

github__fork/EasyCode

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
IEventBusSubscriptionsManager.cs 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
luckearth 提交于 2019-09-14 21:13 +08:00 . 增加消息队列RabiitMQ
using EasyCode.EventBus.Abstractions;
using EasyCode.EventBus.Events;
using System;
using System.Collections.Generic;
using System.Text;
using static EasyCode.EventBus.InMemoryEventBusSubscriptionsManager;
namespace EasyCode.EventBus
{
public interface IEventBusSubscriptionsManager
{
bool IsEmpty { get; }
event EventHandler<string> OnEventRemoved;
void AddDynamicSubscription<TH>(string eventName)
where TH : IDynamicIntegrationEventHandler;
void AddSubscription<T, TH>()
where T : IntegrationEvent
where TH : IIntegrationEventHandler<T>;
void RemoveSubscription<T, TH>()
where TH : IIntegrationEventHandler<T>
where T : IntegrationEvent;
void RemoveDynamicSubscription<TH>(string eventName)
where TH : IDynamicIntegrationEventHandler;
bool HasSubscriptionsForEvent<T>() where T : IntegrationEvent;
bool HasSubscriptionsForEvent(string eventName);
Type GetEventTypeByName(string eventName);
void Clear();
IEnumerable<SubscriptionInfo> GetHandlersForEvent<T>() where T : IntegrationEvent;
IEnumerable<SubscriptionInfo> GetHandlersForEvent(string eventName);
string GetEventKey<T>();
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/github__fork/EasyCode.git
git@gitee.com:github__fork/EasyCode.git
github__fork
EasyCode
EasyCode
master

搜索帮助