Esempio n. 1
0
 public SelectLambdaObserverEx
 (
     [NotNull] IObservable <TItem> Source,
     [NotNull] SimpleObservableEx <TValue> Destination,
     [NotNull] Func <TItem, TValue> Converter
 ) : base
     (
         Source,
         t => Destination.OnNext(Converter(t)),
         Destination.OnCompleted,
         Destination.OnReset,
         Destination.OnError
     )
 {
 }
Esempio n. 2
0
 public WhereLambdaObserverEx
 (
     [NotNull] IObservable <T> Source,
     [NotNull] SimpleObservableEx <T> Destination,
     [NotNull] Func <T, bool> WhereSelector
 ) : base
     (
         Source,
         t => { if (WhereSelector(t))
                {
                    Destination.OnNext(t);
                }
         },
         Destination.OnCompleted,
         Destination.OnReset,
         Destination.OnError
     )
 {
 }