IBaseEventData.cs 603 B

1234567891011121314151617181920212223
  1. namespace EventBus
  2. {
  3. public interface IBaseEventData
  4. {
  5. /// <summary>
  6. /// 清除所有事件订阅
  7. /// </summary>
  8. void Clear();
  9. /// <summary>
  10. /// 取消事件订阅
  11. /// </summary>
  12. /// <param name="guid">事件标识<see cref="RuntimeMethodHandle.Value"/></param>
  13. void UnSubscrip(Guid guid);
  14. /// <summary>
  15. /// 事件名称
  16. /// </summary>
  17. string EventName { get; }
  18. /// <summary>
  19. /// 事件hash
  20. /// </summary>
  21. string Hash { get; }
  22. }
  23. }