public OperationStatus(RemoteContentPullArgs args, string operationId)
 {
     sw.Start();
     _args = args;
     scDatastore = new SitecoreDataStore(deserializer);
     this.OperationId = operationId;
     db = Factory.GetDatabase(args.database);
     tp = new CMThreadPool(this);
     Init();
     tp.Queue(GetNextItem, _args.id);
     for (int i = 0; i < ContentMigrationHandler.writerThreads; i++)
         RunDatabaseWriterProcess();
 }
 public OperationStatus(RemoteContentPullArgs args, string operationId)
 {
     sw.Start();
     _args            = args;
     scDatastore      = new SitecoreDataStore(deserializer);
     this.OperationId = operationId;
     db = Factory.GetDatabase(args.database);
     tp = new CMThreadPool(this);
     Init();
     tp.Queue(GetNextItem, _args.id);
     for (int i = 0; i < ContentMigrationHandler.writerThreads; i++)
     {
         RunDatabaseWriterProcess();
     }
 }
 public void RunPreviewAsFullOperation()
 {
     if (!_args.preview)
     {
         return;
     }
     sw = new Stopwatch();
     sw.Start();
     _lines.Clear();
     _args.preview = false;
     Completed     = false;
     doneRemote    = false;
     root          = null;
     tp            = new CMThreadPool(this);
     Init();
     tp.Queue(GetNextItem, _args.id);
     for (int i = 0; i < ContentMigrationHandler.writerThreads; i++)
     {
         RunDatabaseWriterProcess();
     }
 }
 public void RunPreviewAsFullOperation()
 {
     if (!_args.preview) return;
     sw = new Stopwatch();
     sw.Start();
     _lines.Clear();
     _args.preview = false;
     Completed = false;
     doneRemote = false;
     root = null;
     tp = new CMThreadPool(this);
     Init();
     tp.Queue(GetNextItem, _args.id);
     for (int i = 0; i < ContentMigrationHandler.writerThreads; i++)
         RunDatabaseWriterProcess();
 }