ExperimentalEnumerableAggregateT, TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult Method (IEnumerableT, FuncIObservableT, IObservableTResult1, FuncIObservableT, IObservableTResult2, FuncIObservableT, IObservableTResult3, FuncIObservableT, IObservableTResult4, FuncIObservableT, IObservableTResult5, FuncIObservableT, IObservableTResult6, FuncIObservableT, IObservableTResult7, FuncIObservableT, IObservableTResult8, FuncTResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult) |
Namespace: MoreLinq.Experimental
public static TResult Aggregate<T, TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult>( this IEnumerable<T> source, Func<IObservable<T>, IObservable<TResult1>> accumulator1, Func<IObservable<T>, IObservable<TResult2>> accumulator2, Func<IObservable<T>, IObservable<TResult3>> accumulator3, Func<IObservable<T>, IObservable<TResult4>> accumulator4, Func<IObservable<T>, IObservable<TResult5>> accumulator5, Func<IObservable<T>, IObservable<TResult6>> accumulator6, Func<IObservable<T>, IObservable<TResult7>> accumulator7, Func<IObservable<T>, IObservable<TResult8>> accumulator8, Func<TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult> resultSelector )
Exception | Condition |
---|---|
InvalidOperationException | An IObservableT returned by an accumulator function produced zero or more than a single aggregate result. |
This operator executes immediately.
Each accumulator argument is a function that receives an IObservableT, which when subscribed to, produces the items in the source sequence and in original order; the function must then return an IObservableT that produces a single aggregate on completion (when OnCompleted is called. An error is raised at run-time if the IObserverT returned by an accumulator function produces no result or produces more than a single result.