public WatchService( IFolderSynchronizer folderSynchronizer, IFileWatcherFactory fileWatcherFactory, IFileEventDispatcher fileEventDispatcher ) { _folderSynchronizer = folderSynchronizer; _fileWatcherFactory = fileWatcherFactory; _fileEventDispatcher = fileEventDispatcher; }
public FoldersExplorer(IDialogService dialogService, IFileSystem fileSystem, IFolderSynchronizer <TFolder, TFile> fileSynchronizer) { DialogService = dialogService ?? throw new ArgumentNullException(nameof(dialogService)); FileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem)); AllowedFileExtensions = new HashSet <string>(StringComparer.OrdinalIgnoreCase); OpenFileDialog = fileSystem.CreateFileBrowser(); OpenFolderDialog = fileSystem.CreateFolderBrowser(); FileSynchronizer = fileSynchronizer; Folders = fileSynchronizer.Finder.Factory.CreateFolders(); }
public GoogleDriveAccount( string username, string rootFolderPath, IAuthenticator driveAuthenticator, IFilesGetter driveFilesGetter, IFolderSynchronizer driveFolderSynchronizer) { this.Username = username; this.driveAuthenticator = driveAuthenticator; this.driveFilesGetter = driveFilesGetter; this.driveFolderSynchronizer = driveFolderSynchronizer; this.RootFolderPath = rootFolderPath; }
public GoogleDriveAccount( string username, string rootFolderPath, IAuthenticator driveAuthenticator, IFilesGetter driveFilesGetter, IFolderSynchronizer driveFolderSynchronizer) { this.Username = username; this.driveAuthenticator = driveAuthenticator; this.driveFilesGetter = driveFilesGetter; this.driveFolderSynchronizer = driveFolderSynchronizer; this.RootFolderPath = rootFolderPath; }