Esempio 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)));
 }
Esempio n. 2
0
File: Util.cs Progetto: 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)));
 }