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

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

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

            InternalUnsubscribe(subscription);
        }