public static IObservable <ValueChangedArgs> PollValuesAnnotated(this IValueSymbol symbol, IObservable <Unit> trigger) => Observable.Select <object, ValueChangedArgs>(symbol.PollValues(trigger), o => new ValueChangedArgs(symbol, o, DateTime.UtcNow));
public static IObservable <ValueChangedArgs> PollValuesAnnotated(this IValueSymbol symbol, TimeSpan period) => Observable.Select <object, ValueChangedArgs>(symbol.PollValues(period), o => new ValueChangedArgs(symbol, o, DateTime.UtcNow));
public static IObservable <object> PollValues(this IValueSymbol symbol, TimeSpan period) { long[] numArray1 = new long[] { -1L }; return(symbol.PollValues(Observable.Select <long, Unit>(Observable.StartWith <long>(Observable.Interval(period), numArray1), e => Unit.get_Default()))); }