Example #1
0
 public static IObservable <IList <double> > DoubleInterval <T>(
     this IObservable <T> source,
     float interval,
     bool isHot = true)
 {
     return(!isHot?SelectableExtensions.CreateDoubleIntervalStream <T>(source, interval) : (IObservable <IList <double> >)Observable.Share <IList <double> >((IObservable <M0>)SelectableExtensions.CreateDoubleIntervalStream <T>(source, interval)));
 }
Example #2
0
 public static IConnectableObservable <IList <double> > DoubleIntervalPublish <T>(
     this IObservable <T> source,
     float interval)
 {
     return((IConnectableObservable <IList <double> >)Observable.Publish <IList <double> >((IObservable <M0>)SelectableExtensions.CreateDoubleIntervalStream <T>(source, interval)));
 }