Esempio n. 1
0
        public void Toggle(Action <Duration> onNext)
        {
            current = current.ToggledAndLogged(log);

            var previous = log.Aggregate(Duration.Zero, (a, b) => a + b);

            subscription.Dispose();
            subscription = current.LoggedTime
                           .Subscribe(current => onNext(current + previous));
        }
Esempio n. 2
0
 public string FromText()
 {
     return(_sLoaded.Aggregate("", (current, s) => current + StripNonAscii(s)));
 }