コード例 #1
0
 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));
コード例 #2
0
 public static IObservable <ValueChangedArgs> PollValuesAnnotated(this IValueSymbol symbol, TimeSpan period) =>
 Observable.Select <object, ValueChangedArgs>(symbol.PollValues(period), o => new ValueChangedArgs(symbol, o, DateTime.UtcNow));
コード例 #3
0
 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())));
 }