public async Task Run(PauseTokenSource pauseTokenSource)
 {
     _pauseTokenSource = pauseTokenSource;
     LogHelper.ResetLog();
     _watch = Stopwatch.StartNew();
     SQLite.SQLiteClient.Init();
     _uploadCount   = 0;
     _downloadCount = 0;
     _deletedCount  = 0;
     _totalCount    = 0;
     _current       = -1;
     await SetExectuingFileName("");
     await GetChanges();
     await ProcessItems();
     await Finish();
 }
Exemplo n.º 2
0
 internal PauseToken(PauseTokenSource source)
 {
     _source = source;
 }