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