AsyncQueryableAggregateTSource, TAccumulate, TResult Method (IAsyncQueryableTSource, TAccumulate, ExpressionFuncTAccumulate, TSource, TAccumulate, ExpressionFuncTAccumulate, TResult, CancellationToken) |
Namespace: System.LinqAssembly: System.Interactive.Async.Providers (in System.Interactive.Async.Providers.dll) Version: 1.2.0.0
Syntaxpublic static Task<TResult> Aggregate<TSource, TAccumulate, TResult>(
this IAsyncQueryable<TSource> source,
TAccumulate seed,
Expression<Func<TAccumulate, TSource, TAccumulate>> accumulator,
Expression<Func<TAccumulate, TResult>> resultSelector,
CancellationToken cancellationToken
)
Parameters
- source
- Type: System.LinqIAsyncQueryableTSource
- seed
- Type: TAccumulate
- accumulator
- Type: System.Linq.ExpressionsExpressionFuncTAccumulate, TSource, TAccumulate
- resultSelector
- Type: System.Linq.ExpressionsExpressionFuncTAccumulate, TResult
- cancellationToken
- Type: System.ThreadingCancellationToken
Type Parameters
- TSource
- TAccumulate
- TResult
Return Value
Type:
TaskTResultUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IAsyncQueryableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also