internal RemoteQueryProvider(Func <Expressions.Expression, TSource> dataProvider, ITypeInfoProvider?typeInfoProvider, IQueryResultMapper <TSource> resultMapper, Func <Expression, bool>?canBeEvaluatedLocally) { _dataProvider = dataProvider.CheckNotNull(nameof(dataProvider)); _resultMapper = resultMapper.CheckNotNull(nameof(resultMapper)); _typeInfoProvider = typeInfoProvider; _canBeEvaluatedLocally = canBeEvaluatedLocally; }
public AsyncRemoteStreamProvider(Func <Expressions.Expression, CancellationToken, IAsyncEnumerable <TSource> > dataProvider, ITypeInfoProvider?typeInfoProvider, Func <Expression, bool>?canBeEvaluatedLocally, IQueryResultMapper <TSource> resultMapper) { _dataProvider = dataProvider.CheckNotNull(nameof(dataProvider)); _resultMapper = resultMapper.CheckNotNull(nameof(resultMapper)); _typeInfoProvider = typeInfoProvider; _canBeEvaluatedLocally = canBeEvaluatedLocally; }
public RemoteQueryProvider( Func <Expressions.Expression, TSource?> dataProvider, IQueryResultMapper <TSource> resultMapper, IExpressionToRemoteLinqContext?context) { _dataProvider = dataProvider.CheckNotNull(nameof(dataProvider)); _resultMapper = resultMapper.CheckNotNull(nameof(resultMapper)); _context = context; }