IChainEventSubscription.cs 466 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Blue
  4. {
  5. /// <summary>
  6. /// 订阅链事件的接口
  7. /// </summary>
  8. public interface IChainEventSubscription
  9. {
  10. int SubscribeCount { get; }
  11. IChainEventUnSubscribe Subscribe(Type eventType, int actionHashCode, Action onOnSubscribe);
  12. List<Type> GetEventTypeList();
  13. bool IsSubscribed(Type eventType);
  14. int GetActionHashCode(Type eventType);
  15. bool UnSubscribe(Type eventType);
  16. }
  17. }