namespace EventBus
{
public interface IEventBroker
{
///
/// 根据数据类型获取事件句柄
///
/// 数据类型
/// 事件句柄
IEventData? GetEvent();
///
/// 根据TData数据类型获取带返回值的事件句柄
///
/// 数据类型
/// 返回数据类型
/// 事件句柄
IEventData? GetEvent();
///
/// 根据获取事件句柄
///
/// 事件名称
/// 事件句柄
IAnonymousEventData? GetEvent(string eventName);
///
/// 根据获取事件句柄
///
/// 事件名称
/// 返回数据类型
/// 事件句柄
IAnonymousEventData? GetEvent(string eventName);
}
}