Ejemplo n.º 1
0
        public void Subscribe <T>(Func <T, Task> eventHandlerTaskFactory)
        {
            eventHandlerTaskFactory.NullGuard();

            var subscription = new AsyncSubscription <T>(eventHandlerTaskFactory);

            InternalSubscribe(subscription);
        }
Ejemplo n.º 2
0
 private bool Equals(AsyncSubscription <T> other)
 {
     return(Method.Equals(other.Method));
 }
Ejemplo n.º 3
0
        public void Unsubscribe <T>(Func <T, Task> eventHandlerTaskFactory)
        {
            var subscription = new AsyncSubscription <T>(eventHandlerTaskFactory);

            InternalUnsubscribe(subscription);
        }