public ApplicationPartByIdDataLoader(
     IApplicationStore applicationStore,
     IBatchScheduler batchScheduler)
     : base(batchScheduler)
 {
     _applicationStore = applicationStore;
 }
 public ComponentByIdDataLoader(
     IComponentStore componentStore,
     IBatchScheduler batchScheduler)
     : base(batchScheduler)
 {
     _componentStore = componentStore;
 }
 public ChangeLogByApplicationPartIdDataloader(
     IChangeLogStore store,
     IBatchScheduler batchScheduler,
     DataLoaderOptions?options = null) : base(batchScheduler, options)
 {
     _store = store;
 }
 public MenuByIdDataLoader(
     IBatchScheduler batchScheduler,
     IDbContextFactory <ApplicationDbContext> dbContextFactory)
     : base(batchScheduler)
 {
     _dbContextFactory = dbContextFactory ?? throw new ArgumentNullException(nameof(dbContextFactory));
 }
Esempio n. 5
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="configuration">The configuration instance settings</param>
 /// <param name="repository">The main TES task database repository implementation</param>
 /// <param name="batchScheduler">The batch scheduler implementation</param>
 /// <param name="logger">The logger instance</param>
 public Scheduler(IConfiguration configuration, IRepository <TesTask> repository, IBatchScheduler batchScheduler, ILogger <Scheduler> logger)
 {
     this.repository     = repository;
     this.batchScheduler = batchScheduler;
     this.logger         = logger;
     isDisabled          = configuration.GetValue("DisableBatchScheduling", false);
 }
 public ContactByIdDataLoader(
     IBatchScheduler batchScheduler,
     IDbContextFactory <ApplicationDbContext> dbContextFactory)
     : base(batchScheduler)
 {
     _dbContextFactory = dbContextFactory;
 }
Esempio n. 7
0
 public PropertyDataLoader(
     IBatchScheduler batchScheduler,
     IPropertyRepository propertyRepository)
     : base(batchScheduler)
 {
     _propertyRepository = propertyRepository;
 }
Esempio n. 8
0
 public CameraByIdDataLoader(
     IBatchScheduler batchScheduler,
     ICameraStore cameraStore)
     : base(batchScheduler)
 {
     _cameraStore = cameraStore;
 }
Esempio n. 9
0
 public MediaByIdDataLoader(
     IBatchScheduler batchScheduler,
     IMediaStore mediaStore) :
     base(batchScheduler)
 {
     _mediaStore = mediaStore;
 }
 public PublishedApplicationPartByIdPartDataloader(
     IPublishingStore publishingStore,
     IBatchScheduler batchScheduler,
     DataLoaderOptions?options = null) : base(batchScheduler, options)
 {
     _publishingStore = publishingStore;
 }
 public VariableByIdDataLoader(
     IVariableStore variableStore,
     IBatchScheduler batchScheduler)
     : base(batchScheduler)
 {
     _variableStore = variableStore;
 }
Esempio n. 12
0
 public DoctorByIdDataLoader(
     IBatchScheduler batchScheduler,
     AppDbContext context)
     : base(batchScheduler)
 {
     _context = context;
 }
 public EnvironmentByIdDataLoader(
     IEnvironmentStore applicationStore,
     IBatchScheduler batchScheduler)
     : base(batchScheduler)
 {
     _applicationStore = applicationStore;
 }
 public AuthorDataLoader(
     IBatchScheduler batchScheduler,
     IDbContextFactory <BookContext> contextFactory)
     : base(batchScheduler)
 {
     _contextFactory = contextFactory;
 }
Esempio n. 15
0
 public ThumbnailDataDataLoader(
     IBatchScheduler batchScheduler,
     IThumbnailBlobStore thumbnailBlobStore)
     : base(batchScheduler)
 {
     _thumbnailBlobStore = thumbnailBlobStore;
 }
Esempio n. 16
0
 public ConnectedServiceByIdDataLoader(
     IConnectedServiceManager connectedServiceManager,
     IBatchScheduler batchScheduler)
     : base(batchScheduler)
 {
     _connectedServiceManager = connectedServiceManager;
 }
Esempio n. 17
0
 public ThumbnailByMediaIdDataLoader(
     IBatchScheduler batchScheduler,
     IMediaStore mediaStore)
     : base(batchScheduler)
 {
     _mediaStore = mediaStore;
 }
 public AnimalByIdDataLoader(
     IDbContextFactory <AnimalFarmDbContext> dbContextFactory,
     IBatchScheduler batchScheduler,
     DataLoaderOptions <int>?options = null)
     : base(dbContextFactory, batchScheduler, options)
 {
 }
Esempio n. 19
0
 public MaterialDataLoader(
     IBatchScheduler batchScheduler,
     IDbContextFactory <MyContext> contextFactory
     ) : base(batchScheduler)
 {
     _contextFactory = contextFactory;
 }
Esempio n. 20
0
 public MedicineByIdDataLoader(
     IBatchScheduler batchScheduler,
     AppDbContext context)
     : base(batchScheduler)
 {
     _context = context;
 }
Esempio n. 21
0
        public StitchingContext(
            IBatchScheduler batchScheduler,
            IRequestContextAccessor requestContextAccessor)
        {
            if (batchScheduler == null)
            {
                throw new ArgumentNullException(nameof(batchScheduler));
            }

            if (requestContextAccessor == null)
            {
                throw new ArgumentNullException(nameof(requestContextAccessor));
            }

            foreach (KeyValuePair <NameString, IRequestExecutor> executor in
                     requestContextAccessor.RequestContext.Schema.GetRemoteExecutors())
            {
                _executors.Add(
                    executor.Key,
                    new RemoteRequestExecutor(
                        batchScheduler,
                        executor.Value,
                        requestContextAccessor));
            }
        }
Esempio n. 22
0
 public AccountsByIdDataLoader(
     IBatchScheduler batchScheduler,
     IDbContextFactory <StorageContext> storageContext
     ) : base(batchScheduler)
 {
     this.storageContext = storageContext ?? throw new ArgumentNullException(nameof(storageContext));
 }
Esempio n. 23
0
 public GroupsByPersonIdDataLoader(
     IBatchScheduler batchScheduler,
     IGroupService groupService)
     : base(batchScheduler)
 {
     _groupService = groupService;
 }
Esempio n. 24
0
 public PrescriptionByIdDataLoader(
     IBatchScheduler batchScheduler,
     AppDbContext context)
     : base(batchScheduler)
 {
     _context = context;
 }
Esempio n. 25
0
 public PersonByIdDataLoader(
     IBatchScheduler batchScheduler,
     IPersonService personService)
     : base(batchScheduler)
 {
     _personService = personService;
 }
Esempio n. 26
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="configuration">The configuration instance settings</param>
 /// <param name="repository">The main TES task database repository implementation</param>
 /// <param name="batchScheduler">The batch scheduler implementation</param>
 /// <param name="logger">The logger instance</param>
 public Scheduler(IConfiguration configuration, IRepository <TesTask> repository, IBatchScheduler batchScheduler, ILogger <Scheduler> logger)
 {
     this.repository     = repository;
     this.batchScheduler = batchScheduler;
     this.logger         = logger;
     isStopped           = bool.TryParse(configuration["DisableBatchScheduling"], out var disableBatchScheduling) ? disableBatchScheduling : false;
 }
Esempio n. 27
0
 public ReviewsByBreweryIdDataLoader(
     IBatchScheduler batchScheduler,
     BreweryDbContext breweryDbContext)
     : base(batchScheduler)
 {
     _breweryDbContext = breweryDbContext ?? throw new ArgumentNullException(nameof(breweryDbContext));
 }
 public FetchBatchDataLoader(
     IBatchScheduler batchScheduler,
     FetchBatch <TKey, TValue> fetch)
     : base(batchScheduler)
 {
     _fetch = fetch ?? throw new ArgumentNullException(nameof(fetch));
 }
Esempio n. 29
0
 public DataLoader(
     FetchDataDelegate <TKey, TValue> fetch,
     IBatchScheduler batchScheduler,
     DataLoaderOptions?options = null)
     : base(batchScheduler, options)
 {
     _fetch = fetch ?? throw new ArgumentNullException(nameof(fetch));
 }
Esempio n. 30
0
 public TagsByIdBatchDataLoader(
     IDbContextFactory <QueryDbContext> contextFactory,
     IBatchScheduler batchScheduler,
     DataLoaderOptions <Guid> options = null)
     : base(batchScheduler, options)
 {
     _contextFactory = contextFactory;
 }