public PinnedForEmptyPatternFileSearchService(IFileSearchService innerService, IPinStateService pinStateService) { Ensure.NotNull(innerService, "innerService"); Ensure.NotNull(pinStateService, "pinStateService"); this.innerService = innerService; this.pinStateService = pinStateService; }
public FileSystemWatcherSearchService(string directoryPath, IPinStateService pinStateService) { Ensure.Condition.DirectoryExists(directoryPath, "directoryPath"); Ensure.NotNull(pinStateService, "pinStateService"); this.directoryPath = directoryPath; this.pinStateService = pinStateService; this.watchers = new List <FileSystemWatcher>(); }
public FileSystemWatcherSearchService(string directoryPath, IPinStateService pinStateService) { Ensure.Condition.DirectoryExists(directoryPath, "directoryPath"); Ensure.NotNull(pinStateService, "pinStateService"); this.directoryPath = directoryPath; this.pinStateService = pinStateService; this.watchers = new List<FileSystemWatcher>(); }
internal MainViewModelFactory(IPinStateService pinStateService, Settings settings, IApplicationLoader mainApplicationLoader, Func <HashSet <string> > pinnedFilesGetter, PropertyChangedEventHandler propertyChangedHandler) { Ensure.NotNull(pinStateService, "pinStateService"); Ensure.NotNull(settings, "settings"); Ensure.NotNull(mainApplicationLoader, "mainApplicationLoader"); Ensure.NotNull(pinnedFilesGetter, "pinnedFilesGetter"); this.pinStateService = pinStateService; this.settings = settings; this.mainApplicationLoader = mainApplicationLoader; this.pinnedFilesGetter = pinnedFilesGetter; this.propertyChangedHandler = propertyChangedHandler; }
internal MainViewModelFactory(IPinStateService pinStateService, ISettings settings, IApplicationLoader mainApplicationLoader, ILogFactory logFactory, IExceptionHandler exceptionHandler, PropertyChangedEventHandler propertyChangedHandler) { Ensure.NotNull(pinStateService, "pinStateService"); Ensure.NotNull(settings, "settings"); Ensure.NotNull(mainApplicationLoader, "mainApplicationLoader"); Ensure.NotNull(logFactory, "logFactory"); Ensure.NotNull(exceptionHandler, "exceptionHandler"); this.pinStateService = pinStateService; this.settings = settings; this.mainApplicationLoader = mainApplicationLoader; this.logFactory = logFactory; this.exceptionHandler = exceptionHandler; this.propertyChangedHandler = propertyChangedHandler; }
public FileSystemWatcherSearchService(string directoryPath, IPinStateService pinStateService, IBackgroundContext backgroundContext, ILogFactory logFactory, IExceptionHandler backgroundExceptionHandler) { Ensure.Condition.DirectoryExists(directoryPath, "directoryPath"); Ensure.NotNull(pinStateService, "pinStateService"); Ensure.NotNull(backgroundContext, "backgroundContext"); Ensure.NotNull(logFactory, "logFactory"); Ensure.NotNull(backgroundExceptionHandler, "backgroundExceptionHandler"); this.directoryPath = directoryPath; this.pinStateService = pinStateService; this.backgroundContext = backgroundContext; this.log = logFactory.Scope("FileSystemWatcherSearch"); this.backgroundExceptionHandler = backgroundExceptionHandler; this.matcherFactory = new PatternMatcherFactory(log.Factory); this.watchers = new List <FileSystemWatcher>(); }