// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Linq.Expressions; using System.Reflection; using System.Threading; using System.Threading.Tasks; namespace System.Linq { public static partial class AsyncQueryableEx { private static MethodInfo s_Amb__TSource__2__0; private static MethodInfo Amb__TSource__2__0(Type TSource) => (s_Amb__TSource__2__0 ?? (s_Amb__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Amb).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Amb(this IAsyncQueryable first, IAsyncEnumerable second) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.CreateQuery(Expression.Call(Amb__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } private static MethodInfo s_Buffer__TSource__2__0; private static MethodInfo Buffer__TSource__2__0(Type TSource) => (s_Buffer__TSource__2__0 ?? (s_Buffer__TSource__2__0 = new Func, int, IAsyncQueryable>>(Buffer).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable> Buffer(this IAsyncQueryable source, int count) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery>(Expression.Call(Buffer__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int)))); } private static MethodInfo s_Buffer__TSource__3__0; private static MethodInfo Buffer__TSource__3__0(Type TSource) => (s_Buffer__TSource__3__0 ?? (s_Buffer__TSource__3__0 = new Func, int, int, IAsyncQueryable>>(Buffer).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable> Buffer(this IAsyncQueryable source, int count, int skip) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery>(Expression.Call(Buffer__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int)), Expression.Constant(skip, typeof(int)))); } private static MethodInfo s_Catch__TSource__2__0; private static MethodInfo Catch__TSource__2__0(Type TSource) => (s_Catch__TSource__2__0 ?? (s_Catch__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(Catch).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Catch(this IAsyncQueryable first, IAsyncEnumerable second) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.CreateQuery(Expression.Call(Catch__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } private static MethodInfo s_Catch__TSource_TException__2__0; private static MethodInfo Catch__TSource_TException__2__0(Type TSource, Type TException) => (s_Catch__TSource_TException__2__0 ?? (s_Catch__TSource_TException__2__0 = new Func, Expression>>>, IAsyncQueryable>(Catch).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TException); public static IAsyncQueryable Catch(this IAsyncQueryable source, Expression>>> handler) { if (source == null) throw new ArgumentNullException(nameof(source)); if (handler == null) throw new ArgumentNullException(nameof(handler)); return source.Provider.CreateQuery(Expression.Call(Catch__TSource_TException__2__0(typeof(TSource), typeof(TException)), source.Expression, handler)); } private static MethodInfo s_Catch__TSource_TException__2__1; private static MethodInfo Catch__TSource_TException__2__1(Type TSource, Type TException) => (s_Catch__TSource_TException__2__1 ?? (s_Catch__TSource_TException__2__1 = new Func, Expression>>, IAsyncQueryable>(Catch).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TException); public static IAsyncQueryable Catch(this IAsyncQueryable source, Expression>> handler) { if (source == null) throw new ArgumentNullException(nameof(source)); if (handler == null) throw new ArgumentNullException(nameof(handler)); return source.Provider.CreateQuery(Expression.Call(Catch__TSource_TException__2__1(typeof(TSource), typeof(TException)), source.Expression, handler)); } private static MethodInfo s_Catch__TSource_TException__2__2; private static MethodInfo Catch__TSource_TException__2__2(Type TSource, Type TException) => (s_Catch__TSource_TException__2__2 ?? (s_Catch__TSource_TException__2__2 = new Func, Expression>>>, IAsyncQueryable>(Catch).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TException); public static IAsyncQueryable Catch(this IAsyncQueryable source, Expression>>> handler) { if (source == null) throw new ArgumentNullException(nameof(source)); if (handler == null) throw new ArgumentNullException(nameof(handler)); return source.Provider.CreateQuery(Expression.Call(Catch__TSource_TException__2__2(typeof(TSource), typeof(TException)), source.Expression, handler)); } private static MethodInfo s_Concat__TSource__1__0; private static MethodInfo Concat__TSource__1__0(Type TSource) => (s_Concat__TSource__1__0 ?? (s_Concat__TSource__1__0 = new Func>, IAsyncQueryable>(Concat).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Concat(this IAsyncQueryable> sources) { if (sources == null) throw new ArgumentNullException(nameof(sources)); return sources.Provider.CreateQuery(Expression.Call(Concat__TSource__1__0(typeof(TSource)), sources.Expression)); } private static MethodInfo s_Distinct__TSource_TKey__2__0; private static MethodInfo Distinct__TSource_TKey__2__0(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__2__0 ?? (s_Distinct__TSource_TKey__2__0 = new Func, Expression>>, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(Distinct__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_Distinct__TSource_TKey__2__1; private static MethodInfo Distinct__TSource_TKey__2__1(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__2__1 ?? (s_Distinct__TSource_TKey__2__1 = new Func, Expression>, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(Distinct__TSource_TKey__2__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_Distinct__TSource_TKey__2__2; private static MethodInfo Distinct__TSource_TKey__2__2(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__2__2 ?? (s_Distinct__TSource_TKey__2__2 = new Func, Expression>>, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(Distinct__TSource_TKey__2__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_Distinct__TSource_TKey__3__0; private static MethodInfo Distinct__TSource_TKey__3__0(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__3__0 ?? (s_Distinct__TSource_TKey__3__0 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(Distinct__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_Distinct__TSource_TKey__3__1; private static MethodInfo Distinct__TSource_TKey__3__1(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__3__1 ?? (s_Distinct__TSource_TKey__3__1 = new Func, Expression>, IEqualityComparer, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression> keySelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(Distinct__TSource_TKey__3__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_Distinct__TSource_TKey__3__2; private static MethodInfo Distinct__TSource_TKey__3__2(Type TSource, Type TKey) => (s_Distinct__TSource_TKey__3__2 ?? (s_Distinct__TSource_TKey__3__2 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(Distinct).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable Distinct(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(Distinct__TSource_TKey__3__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_DistinctUntilChanged__TSource__1__0; private static MethodInfo DistinctUntilChanged__TSource__1__0(Type TSource) => (s_DistinctUntilChanged__TSource__1__0 ?? (s_DistinctUntilChanged__TSource__1__0 = new Func, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource__1__0(typeof(TSource)), source.Expression)); } private static MethodInfo s_DistinctUntilChanged__TSource__2__0; private static MethodInfo DistinctUntilChanged__TSource__2__0(Type TSource) => (s_DistinctUntilChanged__TSource__2__0 ?? (s_DistinctUntilChanged__TSource__2__0 = new Func, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_DistinctUntilChanged__TSource_TKey__2__0; private static MethodInfo DistinctUntilChanged__TSource_TKey__2__0(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__2__0 ?? (s_DistinctUntilChanged__TSource_TKey__2__0 = new Func, Expression>>, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__2__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_DistinctUntilChanged__TSource_TKey__2__1; private static MethodInfo DistinctUntilChanged__TSource_TKey__2__1(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__2__1 ?? (s_DistinctUntilChanged__TSource_TKey__2__1 = new Func, Expression>, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__2__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_DistinctUntilChanged__TSource_TKey__2__2; private static MethodInfo DistinctUntilChanged__TSource_TKey__2__2(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__2__2 ?? (s_DistinctUntilChanged__TSource_TKey__2__2 = new Func, Expression>>, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression>> keySelector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__2__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector)); } private static MethodInfo s_DistinctUntilChanged__TSource_TKey__3__0; private static MethodInfo DistinctUntilChanged__TSource_TKey__3__0(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__3__0 ?? (s_DistinctUntilChanged__TSource_TKey__3__0 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_DistinctUntilChanged__TSource_TKey__3__1; private static MethodInfo DistinctUntilChanged__TSource_TKey__3__1(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__3__1 ?? (s_DistinctUntilChanged__TSource_TKey__3__1 = new Func, Expression>, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression> keySelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__3__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_DistinctUntilChanged__TSource_TKey__3__2; private static MethodInfo DistinctUntilChanged__TSource_TKey__3__2(Type TSource, Type TKey) => (s_DistinctUntilChanged__TSource_TKey__3__2 ?? (s_DistinctUntilChanged__TSource_TKey__3__2 = new Func, Expression>>, IEqualityComparer, IAsyncQueryable>(DistinctUntilChanged).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static IAsyncQueryable DistinctUntilChanged(this IAsyncQueryable source, Expression>> keySelector, IEqualityComparer? comparer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.CreateQuery(Expression.Call(DistinctUntilChanged__TSource_TKey__3__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IEqualityComparer)))); } private static MethodInfo s_Do__TSource__2__0; private static MethodInfo Do__TSource__2__0(Type TSource) => (s_Do__TSource__2__0 ?? (s_Do__TSource__2__0 = new Func, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__2__0(typeof(TSource)), source.Expression, onNext)); } private static MethodInfo s_Do__TSource__2__1; private static MethodInfo Do__TSource__2__1(Type TSource) => (s_Do__TSource__2__1 ?? (s_Do__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__2__1(typeof(TSource)), source.Expression, onNext)); } private static MethodInfo s_Do__TSource__2__2; private static MethodInfo Do__TSource__2__2(Type TSource) => (s_Do__TSource__2__2 ?? (s_Do__TSource__2__2 = new Func, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__2__2(typeof(TSource)), source.Expression, onNext)); } private static MethodInfo s_Do__TSource__2__3; private static MethodInfo Do__TSource__2__3(Type TSource) => (s_Do__TSource__2__3 ?? (s_Do__TSource__2__3 = new Func, IObserver, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, IObserver observer) { if (source == null) throw new ArgumentNullException(nameof(source)); if (observer == null) throw new ArgumentNullException(nameof(observer)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__2__3(typeof(TSource)), source.Expression, Expression.Constant(observer, typeof(IObserver)))); } private static MethodInfo s_Do__TSource__3__0; private static MethodInfo Do__TSource__3__0(Type TSource) => (s_Do__TSource__3__0 ?? (s_Do__TSource__3__0 = new Func, Expression>, Action, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Action onCompleted) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); if (onCompleted == null) throw new ArgumentNullException(nameof(onCompleted)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__0(typeof(TSource)), source.Expression, onNext, Expression.Constant(onCompleted, typeof(Action)))); } private static MethodInfo s_Do__TSource__3__1; private static MethodInfo Do__TSource__3__1(Type TSource) => (s_Do__TSource__3__1 ?? (s_Do__TSource__3__1 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); if (onError == null) throw new ArgumentNullException(nameof(onError)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__1(typeof(TSource)), source.Expression, onNext, onError)); } private static MethodInfo s_Do__TSource__3__2; private static MethodInfo Do__TSource__3__2(Type TSource) => (s_Do__TSource__3__2 ?? (s_Do__TSource__3__2 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onCompleted) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); if (onCompleted == null) throw new ArgumentNullException(nameof(onCompleted)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__2(typeof(TSource)), source.Expression, onNext, onCompleted)); } private static MethodInfo s_Do__TSource__3__3; private static MethodInfo Do__TSource__3__3(Type TSource) => (s_Do__TSource__3__3 ?? (s_Do__TSource__3__3 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); if (onError == null) throw new ArgumentNullException(nameof(onError)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__3(typeof(TSource)), source.Expression, onNext, onError)); } private static MethodInfo s_Do__TSource__3__4; private static MethodInfo Do__TSource__3__4(Type TSource) => (s_Do__TSource__3__4 ?? (s_Do__TSource__3__4 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); if (onError == null) throw new ArgumentNullException(nameof(onError)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__4(typeof(TSource)), source.Expression, onNext, onError)); } private static MethodInfo s_Do__TSource__3__5; private static MethodInfo Do__TSource__3__5(Type TSource) => (s_Do__TSource__3__5 ?? (s_Do__TSource__3__5 = new Func, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onCompleted) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); if (onCompleted == null) throw new ArgumentNullException(nameof(onCompleted)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__3__5(typeof(TSource)), source.Expression, onNext, onCompleted)); } private static MethodInfo s_Do__TSource__4__0; private static MethodInfo Do__TSource__4__0(Type TSource) => (s_Do__TSource__4__0 ?? (s_Do__TSource__4__0 = new Func, Expression>, Expression>, Action, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError, Action onCompleted) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); if (onError == null) throw new ArgumentNullException(nameof(onError)); if (onCompleted == null) throw new ArgumentNullException(nameof(onCompleted)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__4__0(typeof(TSource)), source.Expression, onNext, onError, Expression.Constant(onCompleted, typeof(Action)))); } private static MethodInfo s_Do__TSource__4__1; private static MethodInfo Do__TSource__4__1(Type TSource) => (s_Do__TSource__4__1 ?? (s_Do__TSource__4__1 = new Func, Expression>, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError, Expression> onCompleted) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); if (onError == null) throw new ArgumentNullException(nameof(onError)); if (onCompleted == null) throw new ArgumentNullException(nameof(onCompleted)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__4__1(typeof(TSource)), source.Expression, onNext, onError, onCompleted)); } private static MethodInfo s_Do__TSource__4__2; private static MethodInfo Do__TSource__4__2(Type TSource) => (s_Do__TSource__4__2 ?? (s_Do__TSource__4__2 = new Func, Expression>, Expression>, Expression>, IAsyncQueryable>(Do).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Do(this IAsyncQueryable source, Expression> onNext, Expression> onError, Expression> onCompleted) { if (source == null) throw new ArgumentNullException(nameof(source)); if (onNext == null) throw new ArgumentNullException(nameof(onNext)); if (onError == null) throw new ArgumentNullException(nameof(onError)); if (onCompleted == null) throw new ArgumentNullException(nameof(onCompleted)); return source.Provider.CreateQuery(Expression.Call(Do__TSource__4__2(typeof(TSource)), source.Expression, onNext, onError, onCompleted)); } private static MethodInfo s_Expand__TSource__2__0; private static MethodInfo Expand__TSource__2__0(Type TSource) => (s_Expand__TSource__2__0 ?? (s_Expand__TSource__2__0 = new Func, Expression>>>, IAsyncQueryable>(Expand).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Expand(this IAsyncQueryable source, Expression>>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(Expand__TSource__2__0(typeof(TSource)), source.Expression, selector)); } private static MethodInfo s_Expand__TSource__2__1; private static MethodInfo Expand__TSource__2__1(Type TSource) => (s_Expand__TSource__2__1 ?? (s_Expand__TSource__2__1 = new Func, Expression>>, IAsyncQueryable>(Expand).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Expand(this IAsyncQueryable source, Expression>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(Expand__TSource__2__1(typeof(TSource)), source.Expression, selector)); } private static MethodInfo s_Expand__TSource__2__2; private static MethodInfo Expand__TSource__2__2(Type TSource) => (s_Expand__TSource__2__2 ?? (s_Expand__TSource__2__2 = new Func, Expression>>>, IAsyncQueryable>(Expand).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Expand(this IAsyncQueryable source, Expression>>> selector) { if (source == null) throw new ArgumentNullException(nameof(source)); if (selector == null) throw new ArgumentNullException(nameof(selector)); return source.Provider.CreateQuery(Expression.Call(Expand__TSource__2__2(typeof(TSource)), source.Expression, selector)); } private static MethodInfo s_Finally__TSource__2__0; private static MethodInfo Finally__TSource__2__0(Type TSource) => (s_Finally__TSource__2__0 ?? (s_Finally__TSource__2__0 = new Func, Action, IAsyncQueryable>(Finally).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Finally(this IAsyncQueryable source, Action finallyAction) { if (source == null) throw new ArgumentNullException(nameof(source)); if (finallyAction == null) throw new ArgumentNullException(nameof(finallyAction)); return source.Provider.CreateQuery(Expression.Call(Finally__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(finallyAction, typeof(Action)))); } private static MethodInfo s_Finally__TSource__2__1; private static MethodInfo Finally__TSource__2__1(Type TSource) => (s_Finally__TSource__2__1 ?? (s_Finally__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(Finally).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Finally(this IAsyncQueryable source, Expression> finallyAction) { if (source == null) throw new ArgumentNullException(nameof(source)); if (finallyAction == null) throw new ArgumentNullException(nameof(finallyAction)); return source.Provider.CreateQuery(Expression.Call(Finally__TSource__2__1(typeof(TSource)), source.Expression, finallyAction)); } private static MethodInfo s_IgnoreElements__TSource__1__0; private static MethodInfo IgnoreElements__TSource__1__0(Type TSource) => (s_IgnoreElements__TSource__1__0 ?? (s_IgnoreElements__TSource__1__0 = new Func, IAsyncQueryable>(IgnoreElements).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable IgnoreElements(this IAsyncQueryable source) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(IgnoreElements__TSource__1__0(typeof(TSource)), source.Expression)); } private static MethodInfo s_IsEmptyAsync__TSource__2__0; private static MethodInfo IsEmptyAsync__TSource__2__0(Type TSource) => (s_IsEmptyAsync__TSource__2__0 ?? (s_IsEmptyAsync__TSource__2__0 = new Func, CancellationToken, ValueTask>(IsEmptyAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask IsEmptyAsync(this IAsyncQueryable source, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(IsEmptyAsync__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxAsync__TSource__3__0; private static MethodInfo MaxAsync__TSource__3__0(Type TSource) => (s_MaxAsync__TSource__3__0 ?? (s_MaxAsync__TSource__3__0 = new Func, IComparer, CancellationToken, ValueTask>(MaxAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MaxAsync(this IAsyncQueryable source, IComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MaxAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxByAsync__TSource_TKey__3__0; private static MethodInfo MaxByAsync__TSource_TKey__3__0(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__3__0 ?? (s_MaxByAsync__TSource_TKey__3__0 = new Func, Expression>>, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxByAsync__TSource_TKey__3__1; private static MethodInfo MaxByAsync__TSource_TKey__3__1(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__3__1 ?? (s_MaxByAsync__TSource_TKey__3__1 = new Func, Expression>, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__3__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxByAsync__TSource_TKey__3__2; private static MethodInfo MaxByAsync__TSource_TKey__3__2(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__3__2 ?? (s_MaxByAsync__TSource_TKey__3__2 = new Func, Expression>>, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__3__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxByAsync__TSource_TKey__4__0; private static MethodInfo MaxByAsync__TSource_TKey__4__0(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__4__0 ?? (s_MaxByAsync__TSource_TKey__4__0 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxByAsync__TSource_TKey__4__1; private static MethodInfo MaxByAsync__TSource_TKey__4__1(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__4__1 ?? (s_MaxByAsync__TSource_TKey__4__1 = new Func, Expression>, IComparer, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__4__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MaxByAsync__TSource_TKey__4__2; private static MethodInfo MaxByAsync__TSource_TKey__4__2(Type TSource, Type TKey) => (s_MaxByAsync__TSource_TKey__4__2 ?? (s_MaxByAsync__TSource_TKey__4__2 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MaxByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MaxByAsync(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MaxByAsync__TSource_TKey__4__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_Merge__TSource__1__0; private static MethodInfo Merge__TSource__1__0(Type TSource) => (s_Merge__TSource__1__0 ?? (s_Merge__TSource__1__0 = new Func>, IAsyncQueryable>(Merge).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Merge(this IAsyncQueryable> sources) { if (sources == null) throw new ArgumentNullException(nameof(sources)); return sources.Provider.CreateQuery(Expression.Call(Merge__TSource__1__0(typeof(TSource)), sources.Expression)); } private static MethodInfo s_MinAsync__TSource__3__0; private static MethodInfo MinAsync__TSource__3__0(Type TSource) => (s_MinAsync__TSource__3__0 ?? (s_MinAsync__TSource__3__0 = new Func, IComparer, CancellationToken, ValueTask>(MinAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static ValueTask MinAsync(this IAsyncQueryable source, IComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.ExecuteAsync(Expression.Call(MinAsync__TSource__3__0(typeof(TSource)), source.Expression, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinByAsync__TSource_TKey__3__0; private static MethodInfo MinByAsync__TSource_TKey__3__0(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__3__0 ?? (s_MinByAsync__TSource_TKey__3__0 = new Func, Expression>>, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__3__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinByAsync__TSource_TKey__3__1; private static MethodInfo MinByAsync__TSource_TKey__3__1(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__3__1 ?? (s_MinByAsync__TSource_TKey__3__1 = new Func, Expression>, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__3__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinByAsync__TSource_TKey__3__2; private static MethodInfo MinByAsync__TSource_TKey__3__2(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__3__2 ?? (s_MinByAsync__TSource_TKey__3__2 = new Func, Expression>>, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression>> keySelector, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__3__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinByAsync__TSource_TKey__4__0; private static MethodInfo MinByAsync__TSource_TKey__4__0(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__4__0 ?? (s_MinByAsync__TSource_TKey__4__0 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__4__0(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinByAsync__TSource_TKey__4__1; private static MethodInfo MinByAsync__TSource_TKey__4__1(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__4__1 ?? (s_MinByAsync__TSource_TKey__4__1 = new Func, Expression>, IComparer, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__4__1(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_MinByAsync__TSource_TKey__4__2; private static MethodInfo MinByAsync__TSource_TKey__4__2(Type TSource, Type TKey) => (s_MinByAsync__TSource_TKey__4__2 ?? (s_MinByAsync__TSource_TKey__4__2 = new Func, Expression>>, IComparer, CancellationToken, ValueTask>>(MinByAsync).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TKey); public static ValueTask> MinByAsync(this IAsyncQueryable source, Expression>> keySelector, IComparer? comparer, CancellationToken cancellationToken = default) { if (source == null) throw new ArgumentNullException(nameof(source)); if (keySelector == null) throw new ArgumentNullException(nameof(keySelector)); return source.Provider.ExecuteAsync>(Expression.Call(MinByAsync__TSource_TKey__4__2(typeof(TSource), typeof(TKey)), source.Expression, keySelector, Expression.Constant(comparer, typeof(IComparer)), Expression.Constant(cancellationToken, typeof(CancellationToken))), cancellationToken); } private static MethodInfo s_OnErrorResumeNext__TSource__2__0; private static MethodInfo OnErrorResumeNext__TSource__2__0(Type TSource) => (s_OnErrorResumeNext__TSource__2__0 ?? (s_OnErrorResumeNext__TSource__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(OnErrorResumeNext).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable OnErrorResumeNext(this IAsyncQueryable first, IAsyncEnumerable second) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return first.Provider.CreateQuery(Expression.Call(OnErrorResumeNext__TSource__2__0(typeof(TSource)), first.Expression, GetSourceExpression(second))); } private static MethodInfo s_Repeat__TSource__1__0; private static MethodInfo Repeat__TSource__1__0(Type TSource) => (s_Repeat__TSource__1__0 ?? (s_Repeat__TSource__1__0 = new Func, IAsyncQueryable>(Repeat).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Repeat(this IAsyncQueryable source) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Repeat__TSource__1__0(typeof(TSource)), source.Expression)); } private static MethodInfo s_Repeat__TSource__2__0; private static MethodInfo Repeat__TSource__2__0(Type TSource) => (s_Repeat__TSource__2__0 ?? (s_Repeat__TSource__2__0 = new Func, int, IAsyncQueryable>(Repeat).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Repeat(this IAsyncQueryable source, int count) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Repeat__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(count, typeof(int)))); } private static MethodInfo s_Retry__TSource__1__0; private static MethodInfo Retry__TSource__1__0(Type TSource) => (s_Retry__TSource__1__0 ?? (s_Retry__TSource__1__0 = new Func, IAsyncQueryable>(Retry).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Retry(this IAsyncQueryable source) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Retry__TSource__1__0(typeof(TSource)), source.Expression)); } private static MethodInfo s_Retry__TSource__2__0; private static MethodInfo Retry__TSource__2__0(Type TSource) => (s_Retry__TSource__2__0 ?? (s_Retry__TSource__2__0 = new Func, int, IAsyncQueryable>(Retry).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Retry(this IAsyncQueryable source, int retryCount) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Retry__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(retryCount, typeof(int)))); } private static MethodInfo s_Scan__TSource__2__0; private static MethodInfo Scan__TSource__2__0(Type TSource) => (s_Scan__TSource__2__0 ?? (s_Scan__TSource__2__0 = new Func, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Scan(this IAsyncQueryable source, Expression>> accumulator) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.CreateQuery(Expression.Call(Scan__TSource__2__0(typeof(TSource)), source.Expression, accumulator)); } private static MethodInfo s_Scan__TSource__2__1; private static MethodInfo Scan__TSource__2__1(Type TSource) => (s_Scan__TSource__2__1 ?? (s_Scan__TSource__2__1 = new Func, Expression>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Scan(this IAsyncQueryable source, Expression> accumulator) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.CreateQuery(Expression.Call(Scan__TSource__2__1(typeof(TSource)), source.Expression, accumulator)); } private static MethodInfo s_Scan__TSource__2__2; private static MethodInfo Scan__TSource__2__2(Type TSource) => (s_Scan__TSource__2__2 ?? (s_Scan__TSource__2__2 = new Func, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Scan(this IAsyncQueryable source, Expression>> accumulator) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.CreateQuery(Expression.Call(Scan__TSource__2__2(typeof(TSource)), source.Expression, accumulator)); } private static MethodInfo s_Scan__TSource_TAccumulate__3__0; private static MethodInfo Scan__TSource_TAccumulate__3__0(Type TSource, Type TAccumulate) => (s_Scan__TSource_TAccumulate__3__0 ?? (s_Scan__TSource_TAccumulate__3__0 = new Func, object, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); public static IAsyncQueryable Scan(this IAsyncQueryable source, TAccumulate seed, Expression>> accumulator) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.CreateQuery(Expression.Call(Scan__TSource_TAccumulate__3__0(typeof(TSource), typeof(TAccumulate)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator)); } private static MethodInfo s_Scan__TSource_TAccumulate__3__1; private static MethodInfo Scan__TSource_TAccumulate__3__1(Type TSource, Type TAccumulate) => (s_Scan__TSource_TAccumulate__3__1 ?? (s_Scan__TSource_TAccumulate__3__1 = new Func, object, Expression>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); public static IAsyncQueryable Scan(this IAsyncQueryable source, TAccumulate seed, Expression> accumulator) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.CreateQuery(Expression.Call(Scan__TSource_TAccumulate__3__1(typeof(TSource), typeof(TAccumulate)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator)); } private static MethodInfo s_Scan__TSource_TAccumulate__3__2; private static MethodInfo Scan__TSource_TAccumulate__3__2(Type TSource, Type TAccumulate) => (s_Scan__TSource_TAccumulate__3__2 ?? (s_Scan__TSource_TAccumulate__3__2 = new Func, object, Expression>>, IAsyncQueryable>(Scan).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TAccumulate); public static IAsyncQueryable Scan(this IAsyncQueryable source, TAccumulate seed, Expression>> accumulator) { if (source == null) throw new ArgumentNullException(nameof(source)); if (accumulator == null) throw new ArgumentNullException(nameof(accumulator)); return source.Provider.CreateQuery(Expression.Call(Scan__TSource_TAccumulate__3__2(typeof(TSource), typeof(TAccumulate)), source.Expression, Expression.Constant(seed, typeof(TAccumulate)), accumulator)); } private static MethodInfo s_SelectMany__TSource_TOther__2__0; private static MethodInfo SelectMany__TSource_TOther__2__0(Type TSource, Type TOther) => (s_SelectMany__TSource_TOther__2__0 ?? (s_SelectMany__TSource_TOther__2__0 = new Func, IAsyncEnumerable, IAsyncQueryable>(SelectMany).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource, TOther); public static IAsyncQueryable SelectMany(this IAsyncQueryable source, IAsyncEnumerable other) { if (source == null) throw new ArgumentNullException(nameof(source)); if (other == null) throw new ArgumentNullException(nameof(other)); return source.Provider.CreateQuery(Expression.Call(SelectMany__TSource_TOther__2__0(typeof(TSource), typeof(TOther)), source.Expression, GetSourceExpression(other))); } private static MethodInfo s_StartWith__TSource__2__0; private static MethodInfo StartWith__TSource__2__0(Type TSource) => (s_StartWith__TSource__2__0 ?? (s_StartWith__TSource__2__0 = new Func, object[], IAsyncQueryable>(StartWith).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable StartWith(this IAsyncQueryable source, params TSource[] values) { if (source == null) throw new ArgumentNullException(nameof(source)); if (values == null) throw new ArgumentNullException(nameof(values)); return source.Provider.CreateQuery(Expression.Call(StartWith__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(values, typeof(TSource[])))); } private static MethodInfo s_Timeout__TSource__2__0; private static MethodInfo Timeout__TSource__2__0(Type TSource) => (s_Timeout__TSource__2__0 ?? (s_Timeout__TSource__2__0 = new Func, TimeSpan, IAsyncQueryable>(Timeout).GetMethodInfo().GetGenericMethodDefinition())).MakeGenericMethod(TSource); public static IAsyncQueryable Timeout(this IAsyncQueryable source, TimeSpan timeout) { if (source == null) throw new ArgumentNullException(nameof(source)); return source.Provider.CreateQuery(Expression.Call(Timeout__TSource__2__0(typeof(TSource)), source.Expression, Expression.Constant(timeout, typeof(TimeSpan)))); } } }