示例#1
0
 /// <summary>
 /// remove event handler for event
 /// </summary>
 /// <typeparam name="TEvent">TEvent</typeparam>
 /// <typeparam name="TEventHandler">TEventHandler</typeparam>
 /// <returns>whether the operation success</returns>
 public static Task <bool> UnSubscribeAsync <TEvent, TEventHandler>(this IEventSubscriber subscriber)
     where TEventHandler : class, IEventHandler <TEvent>
     where TEvent : class, IEventBase
 {
     return(subscriber.UnSubscribeAsync(typeof(TEvent), typeof(TEventHandler)));
 }