示例#1
0
 public RebuildTask(ILogger log,
                    IDependencyResolver ioc,
                    IHistoryReader historyReader,
                    IVersioningRepository versioningRepository,
                    ICheckpointStore checkpoints,
                    CancellationToken?pause = null)
 {
     if (log == null)
     {
         throw new ArgumentNullException("log");
     }
     if (ioc == null)
     {
         throw new ArgumentNullException("ioc");
     }
     if (historyReader == null)
     {
         throw new ArgumentNullException("historyReader");
     }
     if (versioningRepository == null)
     {
         throw new ArgumentNullException("versioningRepository");
     }
     if (checkpoints == null)
     {
         throw new ArgumentNullException("checkpoints");
     }
     this.log                  = log;
     this.ioc                  = ioc;
     this.historyReader        = historyReader;
     this.versioningRepository = versioningRepository;
     this.checkpoints          = checkpoints;
     this.running              = pause ?? CancellationToken.None;
 }
示例#2
0
 public RebuildTask(ILogger log,
                    IDependencyResolver ioc,
                    IHistoryReader historyReader,
                    IVersioningRepository versioningRepository,
                    ICheckpointStore checkpoints,
                    CancellationToken? pause = null)
 {
     if (log == null) throw new ArgumentNullException("log");
     if (ioc == null) throw new ArgumentNullException("ioc");
     if (historyReader == null) throw new ArgumentNullException("historyReader");
     if (versioningRepository == null) throw new ArgumentNullException("versioningRepository");
     if (checkpoints == null) throw new ArgumentNullException("checkpoints");
     this.log = log;
     this.ioc = ioc;
     this.historyReader = historyReader;
     this.versioningRepository = versioningRepository;
     this.checkpoints = checkpoints;
     this.running = pause ?? CancellationToken.None;
 }
 public UtilityTasks(ILogger log,
                     IDependencyResolver ioc,
                     IStoreEvents storeEvents,
                     IHistoryReader historyReader,
                     IVersioningRepository versioningRepository,
                     ICheckpointStore checkpoints,
                     IPersistHelper persistHelper,
                     IRepository repository,
                     string rmConnectionString)
 {
     this.log = log;
     this.ioc = ioc;
     this.storeEvents = storeEvents;
     this.historyReader = historyReader;
     this.versioningRepository = versioningRepository;
     this.checkpoints = checkpoints;
     this.rmConnectionString = rmConnectionString;
     this.persistHelper = persistHelper;
     this.repository = repository;
 }
示例#4
0
 public UtilityTasks(ILogger log,
                     IDependencyResolver ioc,
                     IStoreEvents storeEvents,
                     IHistoryReader historyReader,
                     IVersioningRepository versioningRepository,
                     ICheckpointStore checkpoints,
                     IPersistHelper persistHelper,
                     IRepository repository,
                     string rmConnectionString)
 {
     this.log                  = log;
     this.ioc                  = ioc;
     this.storeEvents          = storeEvents;
     this.historyReader        = historyReader;
     this.versioningRepository = versioningRepository;
     this.checkpoints          = checkpoints;
     this.rmConnectionString   = rmConnectionString;
     this.persistHelper        = persistHelper;
     this.repository           = repository;
 }
 public RunManager(
     IScheduleReader <TIdentifier> scheduleReader,
     ITaskDefinitionReader <TIdentifier> taskDefinitionReader,
     IRunner <TIdentifier> runner,
     IHistoryWriter <TIdentifier> historyWriter,
     IScheduleWriter <TIdentifier> scheduleWriter,
     IPreconditionReader <TIdentifier> preconditionReader,
     IDueTasksFilter <TIdentifier> dueTasksFilter,
     IHistoryReader <TIdentifier> historyReader,
     IServiceScopeFactory serviceScopeFactory,
     ILogger <RunManager <TIdentifier> > logger,
     IInbuiltTaskPreconditionsProvider <TIdentifier> inbuiltTaskPreconditionsProvider,
     ITaskDefinitionStateReader <TIdentifier> taskDefinitionStateReader,
     ITaskDefinitionStateWriter <TIdentifier> taskDefinitionStateWriter,
     IFaultHandler <TIdentifier> faultHandler,
     IFaultReporter <TIdentifier> faultReporter,
     IOnDemandQueueManager <TIdentifier> onDemandQueueManager,
     ITaskRunnerLogger taskRunnerLogger)
 {
     this.scheduleReader       = scheduleReader;
     this.taskDefinitionReader = taskDefinitionReader;
     this.runner              = runner;
     this.historyWriter       = historyWriter;
     this.scheduleWriter      = scheduleWriter;
     this.preconditionReader  = preconditionReader;
     this.dueTasksFilter      = dueTasksFilter;
     this.historyReader       = historyReader;
     this.serviceScopeFactory = serviceScopeFactory;
     Logger = logger;
     this.inbuiltTaskPreconditionsProvider = inbuiltTaskPreconditionsProvider;
     this.taskDefinitionStateReader        = taskDefinitionStateReader;
     this.taskDefinitionStateWriter        = taskDefinitionStateWriter;
     this.faultHandler         = faultHandler;
     this.faultReporter        = faultReporter;
     this.onDemandQueueManager = onDemandQueueManager;
     this.taskRunnerLogger     = taskRunnerLogger;
 }
示例#6
0
 internal static extern int CreateHistoryReader(string wzFilePath,
                                                out IHistoryReader ppHistReader);
示例#7
0
 public static extern HRESULT CreateHistoryReader(string filePath, out IHistoryReader historyReader);
示例#8
0
 internal static extern int CreateHistoryReader(string wzFilePath,
                                                out IHistoryReader ppHistReader);
示例#9
0
 public HistoryLoader(IHistoryReader reader)
 {
     _reader = reader;
 }
   public static extern void CreateHistoryReader(
 string wzFilePath,
 out IHistoryReader ppHistReader);
示例#11
0
 public HistoryWriter(HistoryConfiguration configuration, IHistoryReader historyReader, JsonSerializer serializer)
 {
     _configuration = configuration;
     _historyReader = historyReader;
     _serializer    = serializer;
 }
示例#12
0
 public HistoryLoader(IHistoryReader reader)
 {
     _reader = reader;
 }