Ejemplo 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));
        }
Ejemplo n.º 2
0
 public string FromText()
 {
     return(_sLoaded.Aggregate("", (current, s) => current + StripNonAscii(s)));
 }