Exemple #1
0
 public FetchSingleDataLoader(
     FetchCache <TKey, TValue> fetch,
     int cacheSize, DataLoaderOptions <TKey> options)
     : base(options)
 {
     _fetch = fetch ?? throw new ArgumentNullException(nameof(fetch));
 }
 public AnimalByIdDataLoader(
     IDbContextFactory <AnimalFarmDbContext> dbContextFactory,
     IBatchScheduler batchScheduler,
     DataLoaderOptions <int>?options = null)
     : base(dbContextFactory, batchScheduler, options)
 {
 }
 public FarmsByPersonIdDataLoader(
     IDbContextFactory <AnimalFarmDbContext> dbContextFactory,
     IBatchScheduler batchScheduler,
     DataLoaderOptions <int>?options = null)
     : base(batchScheduler, options)
 {
     this.dbContextFactory = dbContextFactory ?? throw new ArgumentNullException(nameof(dbContextFactory));
 }
Exemple #4
0
 public AuthorByMessageIdDataLoader(
     [Service] IUserRepository userRepository,
     IBatchScheduler batchScheduler,
     DataLoaderOptions <Guid>?options = null) : base(batchScheduler,
                                                     options)
 {
     _userRepository = userRepository;
 }
Exemple #5
0
 public ChannelByWorkspaceDataLoader(
     [Service] IChannelRepository channelRepository,
     IBatchScheduler batchScheduler,
     DataLoaderOptions <String>?options = null) : base(batchScheduler,
                                                       options)
 {
     _channelRepository = channelRepository;
 }
Exemple #6
0
 public FetchBatchDataLoader(
     FetchBatch <TKey, TValue> fetch,
     IBatchScheduler batchScheduler,
     DataLoaderOptions options)
     : base(batchScheduler, options)
 {
     _fetch = fetch ?? throw new ArgumentNullException(nameof(fetch));
 }
Exemple #7
0
 public MessageByChannelDataloader(
     [Service] IMessageRepository messageRepository,
     IBatchScheduler batchScheduler,
     DataLoaderOptions <String>?options = null) : base(batchScheduler,
                                                       options)
 {
     _messageRepository = messageRepository;
 }
 public TagsByIdBatchDataLoader(
     IDbContextFactory <QueryDbContext> contextFactory,
     IBatchScheduler batchScheduler,
     DataLoaderOptions <Guid> options = null)
     : base(batchScheduler, options)
 {
     _contextFactory = contextFactory;
 }
 public SpeakerByIdDataLoader(
     IDbContextFactory <ApplicationDbContext> dbContextFactory,
     IBatchScheduler batchScheduler,
     DataLoaderOptions options)
     : base(batchScheduler, options)
 {
     _dbContextFactory = dbContextFactory ??
                         throw new ArgumentNullException(nameof(dbContextFactory));
 }
Exemple #10
0
 protected EntityByIdDataLoader(
     IBatchScheduler batchScheduler,
     DataLoaderOptions options,
     IDbContextFactory <Data.ApplicationDbContext> dbContextFactory,
     Func <Data.ApplicationDbContext, DbSet <TEntity> > getQueryable
     )
     : base(batchScheduler, options)
 {
     _dbContextFactory = dbContextFactory;
     _getQueryable     = getQueryable;
 }
 public GetHttpsResourceByIdDataLoader(
     IBatchScheduler batchScheduler,
     DataLoaderOptions options,
     IDbContextFactory <Data.ApplicationDbContext> dbContextFactory
     )
     : base(
         batchScheduler,
         options,
         dbContextFactory,
         dbContext => dbContext.GetHttpsResources
         )
 {
 }
Exemple #12
0
 public OpticalDataByIdDataLoader(
     IBatchScheduler batchScheduler,
     DataLoaderOptions options,
     IDbContextFactory <Data.ApplicationDbContext> dbContextFactory
     )
     : base(
         batchScheduler,
         options,
         dbContextFactory,
         dbContext => dbContext.OpticalData
         )
 {
 }
 protected AssociationsByAssociateIdDataLoader(
     IBatchScheduler batchScheduler,
     DataLoaderOptions options,
     IDbContextFactory <Data.ApplicationDbContext> dbContextFactory,
     Func <Data.ApplicationDbContext, IReadOnlyList <Guid>, IQueryable <TAssociation> > getAssociations,
     Func <TAssociation, Guid> getAssociateId
     )
     : base(batchScheduler, options)
 {
     _dbContextFactory = dbContextFactory;
     _getAssociations  = getAssociations;
     _getAssociateId   = getAssociateId;
 }
Exemple #14
0
 public GetHttpsResourcesByDataIdDataLoader(
     IBatchScheduler batchScheduler,
     DataLoaderOptions options,
     IDbContextFactory <Data.ApplicationDbContext> dbContextFactory
     )
     : base(
         batchScheduler,
         options,
         dbContextFactory,
         (dbContext, ids) =>
         dbContext.GetHttpsResources.AsQueryable().Where(x =>
                                                         ids.Contains(x.CalorimetricDataId ?? x.HygrothermalDataId ?? x.OpticalDataId ?? x.PhotovoltaicDataId ?? Guid.Empty)
                                                         ),
         x => x.DataId
         )
 {
 }
Exemple #15
0
 public GetHttpsResourceChildrenByGetHttpsResourceIdDataLoader(
     IBatchScheduler batchScheduler,
     DataLoaderOptions options,
     IDbContextFactory <Data.ApplicationDbContext> dbContextFactory
     )
     : base(
         batchScheduler,
         options,
         dbContextFactory,
         (dbContext, ids) =>
         dbContext.GetHttpsResources.AsQueryable().Where(x =>
                                                         ids.Contains(x.ParentId ?? Guid.Empty)
                                                         ),
         x => x.Id
         )
 {
 }
Exemple #16
0
 public FetchDataLoader(FetchBatch <TKey, TValue> fetch, DataLoaderOptions <TKey> options)
     : base(options)
 {
     _fetch = fetch ?? throw new ArgumentNullException(nameof(fetch));
 }
Exemple #17
0
 public AbstractListLoader(DataLoaderOptions <TKey>?options = null)
     : base(options ?? DEFAULT_OPTIONS)
 {
 }
 public TestBatchLoader(
     IBatchScheduler batchScheduler,
     DataLoaderOptions options = null)
     : base(batchScheduler, options)
 {
 }
Exemple #19
0
 public TestGroupedLoader(
     IBatchScheduler batchScheduler,
     DataLoaderOptions <int> options = null) : base(batchScheduler, options)
 {
 }
 protected BatchDataLoader(
     IBatchScheduler batchScheduler,
     DataLoaderOptions <TKey>?options = null)
     : base(batchScheduler, options)
 {
 }
Exemple #21
0
 public FetchCacheDataLoader(FetchCacheCt <TKey, TValue> fetch, DataLoaderOptions options)
     : base(options)
 {
     _fetch = fetch ?? throw new ArgumentNullException(nameof(fetch));
 }
Exemple #22
0
 public PersonsGroupDataLoader(
     IBatchScheduler batchScheduler,
     DataLoaderOptions options = null)
     : base(batchScheduler, options)
 {
 }