public JobPoller(VaultSync sync, VaultContext context, Func<bool> keepRunning, bool startActive)
 {
     Sync = sync;
     Context = context;
     KeepRunning = keepRunning;
     active = startActive;
 }
Beispiel #2
0
        public void beginLoad(VaultContext context, Func<bool> keepRunning)
        {
            if (job != null)
            {
                throw new InvalidOperationException("You cannot call beginLoad twice without calling endLoad in between");
            }

            job = new InventoryRetrievalJob(context.Mapping, keepRunning);
            job.run();
        }