Exemplo n.º 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;
 }
 public ShowChangedProjectionsTask(ILogger log, IDependencyResolver ioc, IVersioningRepository versioningRepository, string rmConnectionString)
 {
     if (log == null) throw new ArgumentNullException("log");
     if (ioc == null) throw new ArgumentNullException("ioc");
     if (versioningRepository == null) throw new ArgumentNullException("versioningRepository");
     this.log = log;
     this.ioc = ioc;
     this.versioningRepository = versioningRepository;
     this.rmConnectionString = rmConnectionString;
 }
Exemplo n.º 3
0
 public ShowChangedProjectionsTask(ILogger log, IDependencyResolver ioc, IVersioningRepository versioningRepository, string rmConnectionString)
 {
     if (log == null)
     {
         throw new ArgumentNullException("log");
     }
     if (ioc == null)
     {
         throw new ArgumentNullException("ioc");
     }
     if (versioningRepository == null)
     {
         throw new ArgumentNullException("versioningRepository");
     }
     this.log = log;
     this.ioc = ioc;
     this.versioningRepository = versioningRepository;
     this.rmConnectionString   = rmConnectionString;
 }
Exemplo n.º 4
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;
 }
Exemplo n.º 5
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;
 }