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; }
public LocalFileSynchronizer(IGoogleDriveClient googleDriveClient, MultiDriveSyncService service) { _service = service; watcher = new FileSystemWatcher(); this.googleDriveClient = googleDriveClient; parentIdsByPath = new Dictionary <string, string>(); eventDebouncer = new Debouncer <FileSystemEventArgs>(DebouncedEventHandler); }