Esempio n. 1
0
        public void Subscribe(ISignalObserver <T> observer)
        {
            var parent = new RepeatPredicteObserver(observer, source, predicate);

            observer.OnSubscribe(parent);
            parent.Next();
        }
        public IDisposable Subscribe(IObserver <T> observer)
        {
            var parent = new RepeatPredicteObserver(observer, source, predicate);

            parent.Next();
            return(parent);
        }
Esempio n. 3
0
        public void Subscribe(ISignalObserver <T> observer)
        {
            if (times == 0)
            {
                source.Subscribe(new ObservableSourceTake <T> .TakeObserver(observer, 0));
                return;
            }
            var parent = new RepeatPredicteObserver(observer, source, times);

            observer.OnSubscribe(parent);
            parent.Next();
        }