Ejemplo n.º 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 bool UnSubscribe <TEvent, TEventHandler>(this IEventSubscriber subscriber)
     where TEventHandler : class, IEventHandler <TEvent>
     where TEvent : class, IEventBase
 {
     return(subscriber.UnSubscribe(typeof(TEvent), typeof(TEventHandler)));
 }