Exemplo n.º 1
0
 public static EventSubscription Subscribe <T> (this EventBus eventBus, object source, string type, TaskScheduler scheduler, Func <EventInfo, T, IEnumerator <object> > task)
     where T : class
 {
     return(eventBus.Subscribe <T>(source, type, TaskEventSubscriber.New <T>(scheduler, task)));
 }
Exemplo n.º 2
0
Arquivo: Util.cs Projeto: sq/Libraries
 public static EventSubscription Subscribe(this EventBus eventBus, object source, string type, TaskScheduler scheduler, Func <IEventInfo, IEnumerator <object> > task)
 {
     return(eventBus.Subscribe(source, type, TaskEventSubscriber.New(scheduler, task)));
 }