示例#1
0
        public void Subscribe <T>(Action <T> eventHandlerTaskFactory)
        {
            eventHandlerTaskFactory.NullGuard();

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

            InternalSubscribe(subscription);
        }
示例#2
0
        public void Unsubscribe <T>(Action <T> eventHandlerTaskFactory)
        {
            var subscription = new SyncSubscription <T>(eventHandlerTaskFactory);

            InternalUnsubscribe(subscription);
        }