コード例 #1
0
 public ApplicationPartByIdDataLoader(
     IApplicationStore applicationStore,
     IBatchScheduler batchScheduler)
     : base(batchScheduler)
 {
     _applicationStore = applicationStore;
 }
コード例 #2
0
 public ComponentByIdDataLoader(
     IComponentStore componentStore,
     IBatchScheduler batchScheduler)
     : base(batchScheduler)
 {
     _componentStore = componentStore;
 }
コード例 #3
0
 public ChangeLogByApplicationPartIdDataloader(
     IChangeLogStore store,
     IBatchScheduler batchScheduler,
     DataLoaderOptions?options = null) : base(batchScheduler, options)
 {
     _store = store;
 }
コード例 #4
0
 public MenuByIdDataLoader(
     IBatchScheduler batchScheduler,
     IDbContextFactory <ApplicationDbContext> dbContextFactory)
     : base(batchScheduler)
 {
     _dbContextFactory = dbContextFactory ?? throw new ArgumentNullException(nameof(dbContextFactory));
 }
コード例 #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);
 }
コード例 #6
0
 public ContactByIdDataLoader(
     IBatchScheduler batchScheduler,
     IDbContextFactory <ApplicationDbContext> dbContextFactory)
     : base(batchScheduler)
 {
     _dbContextFactory = dbContextFactory;
 }
コード例 #7
0
 public PropertyDataLoader(
     IBatchScheduler batchScheduler,
     IPropertyRepository propertyRepository)
     : base(batchScheduler)
 {
     _propertyRepository = propertyRepository;
 }
コード例 #8
0
 public CameraByIdDataLoader(
     IBatchScheduler batchScheduler,
     ICameraStore cameraStore)
     : base(batchScheduler)
 {
     _cameraStore = cameraStore;
 }
コード例 #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;
 }
コード例 #11
0
 public VariableByIdDataLoader(
     IVariableStore variableStore,
     IBatchScheduler batchScheduler)
     : base(batchScheduler)
 {
     _variableStore = variableStore;
 }
コード例 #12
0
 public DoctorByIdDataLoader(
     IBatchScheduler batchScheduler,
     AppDbContext context)
     : base(batchScheduler)
 {
     _context = context;
 }
コード例 #13
0
 public EnvironmentByIdDataLoader(
     IEnvironmentStore applicationStore,
     IBatchScheduler batchScheduler)
     : base(batchScheduler)
 {
     _applicationStore = applicationStore;
 }
コード例 #14
0
 public AuthorDataLoader(
     IBatchScheduler batchScheduler,
     IDbContextFactory <BookContext> contextFactory)
     : base(batchScheduler)
 {
     _contextFactory = contextFactory;
 }
コード例 #15
0
 public ThumbnailDataDataLoader(
     IBatchScheduler batchScheduler,
     IThumbnailBlobStore thumbnailBlobStore)
     : base(batchScheduler)
 {
     _thumbnailBlobStore = thumbnailBlobStore;
 }
コード例 #16
0
 public ConnectedServiceByIdDataLoader(
     IConnectedServiceManager connectedServiceManager,
     IBatchScheduler batchScheduler)
     : base(batchScheduler)
 {
     _connectedServiceManager = connectedServiceManager;
 }
コード例 #17
0
 public ThumbnailByMediaIdDataLoader(
     IBatchScheduler batchScheduler,
     IMediaStore mediaStore)
     : base(batchScheduler)
 {
     _mediaStore = mediaStore;
 }
コード例 #18
0
 public AnimalByIdDataLoader(
     IDbContextFactory <AnimalFarmDbContext> dbContextFactory,
     IBatchScheduler batchScheduler,
     DataLoaderOptions <int>?options = null)
     : base(dbContextFactory, batchScheduler, options)
 {
 }
コード例 #19
0
 public MaterialDataLoader(
     IBatchScheduler batchScheduler,
     IDbContextFactory <MyContext> contextFactory
     ) : base(batchScheduler)
 {
     _contextFactory = contextFactory;
 }
コード例 #20
0
 public MedicineByIdDataLoader(
     IBatchScheduler batchScheduler,
     AppDbContext context)
     : base(batchScheduler)
 {
     _context = context;
 }
コード例 #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));
            }
        }
コード例 #22
0
 public AccountsByIdDataLoader(
     IBatchScheduler batchScheduler,
     IDbContextFactory <StorageContext> storageContext
     ) : base(batchScheduler)
 {
     this.storageContext = storageContext ?? throw new ArgumentNullException(nameof(storageContext));
 }
コード例 #23
0
 public GroupsByPersonIdDataLoader(
     IBatchScheduler batchScheduler,
     IGroupService groupService)
     : base(batchScheduler)
 {
     _groupService = groupService;
 }
コード例 #24
0
 public PrescriptionByIdDataLoader(
     IBatchScheduler batchScheduler,
     AppDbContext context)
     : base(batchScheduler)
 {
     _context = context;
 }
コード例 #25
0
 public PersonByIdDataLoader(
     IBatchScheduler batchScheduler,
     IPersonService personService)
     : base(batchScheduler)
 {
     _personService = personService;
 }
コード例 #26
0
ファイル: Scheduler.cs プロジェクト: kgalens/CromwellOnAzure
 /// <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;
 }
コード例 #27
0
 public ReviewsByBreweryIdDataLoader(
     IBatchScheduler batchScheduler,
     BreweryDbContext breweryDbContext)
     : base(batchScheduler)
 {
     _breweryDbContext = breweryDbContext ?? throw new ArgumentNullException(nameof(breweryDbContext));
 }
コード例 #28
0
 public FetchBatchDataLoader(
     IBatchScheduler batchScheduler,
     FetchBatch <TKey, TValue> fetch)
     : base(batchScheduler)
 {
     _fetch = fetch ?? throw new ArgumentNullException(nameof(fetch));
 }
コード例 #29
0
 public DataLoader(
     FetchDataDelegate <TKey, TValue> fetch,
     IBatchScheduler batchScheduler,
     DataLoaderOptions?options = null)
     : base(batchScheduler, options)
 {
     _fetch = fetch ?? throw new ArgumentNullException(nameof(fetch));
 }
コード例 #30
0
 public TagsByIdBatchDataLoader(
     IDbContextFactory <QueryDbContext> contextFactory,
     IBatchScheduler batchScheduler,
     DataLoaderOptions <Guid> options = null)
     : base(batchScheduler, options)
 {
     _contextFactory = contextFactory;
 }