コード例 #1
0
        public void Subscribe <T>(Func <T, Task> eventHandlerTaskFactory)
        {
            eventHandlerTaskFactory.NullGuard();

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

            InternalSubscribe(subscription);
        }
コード例 #2
0
 private bool Equals(AsyncSubscription <T> other)
 {
     return(Method.Equals(other.Method));
 }
コード例 #3
0
        public void Unsubscribe <T>(Func <T, Task> eventHandlerTaskFactory)
        {
            var subscription = new AsyncSubscription <T>(eventHandlerTaskFactory);

            InternalUnsubscribe(subscription);
        }