Beispiel #1
0
 public RemoteFileSynchronizer(IGoogleDriveClient googleDriveClient, MultiDriveSyncService service)
 {
     this.googleDriveClient = googleDriveClient ?? throw new ArgumentNullException(nameof(googleDriveClient));
     FolderPathsById        = new Dictionary <string, string>();
     _service = service;
     FolderPathsById[_service.Settings.StorageRootId] = _service.Settings.LocalRootPath;
 }
Beispiel #2
0
 public LocalFileSynchronizer(IGoogleDriveClient googleDriveClient, MultiDriveSyncService service)
 {
     _service = service;
     watcher  = new FileSystemWatcher();
     this.googleDriveClient = googleDriveClient;
     parentIdsByPath        = new Dictionary <string, string>();
     eventDebouncer         = new Debouncer <FileSystemEventArgs>(DebouncedEventHandler);
 }