public LibraryOperations(ITagCache tagCache, IPathsCache pathsCache, IBinariesCache binariesCache, IBinaryDataCache dataCache, IFileValidator fileValidator) { _tagCache = tagCache; _pathsCache = pathsCache; _binariesCache = binariesCache; _dataCache = dataCache; _fileValidator = fileValidator; }
public LibraryView(ITagCache tags, IPathsCache paths, IBinariesCache binaries, Dispatcher dispatcher, ILibraryOperations libraryOps, IErrorHandler errorHandler, IFileValidator fileValidator, IEventAggregator eventAggregator) { _tags = tags; _paths = paths; _binariesCache = binaries; _dispatcher = dispatcher; _eventAggregator = eventAggregator; _sourceNodes = new ObservableCollection <LibraryViewNode>(); _nodeViewer = new PropertyOrderedObservableCollectionViewer <LibraryViewNode>(_dispatcher); _nodeViewer.SetMediator(this); _nodeViewer.Attach(_sourceNodes); _nodeViewer.OrderBy(f => f.Name, new [] { "Name" }, false); _eventAggregator.AddListener(this, _dispatcher); LoadedBinariesCache = new LoadedBinaryCache(100, binaries); Operations = new LibraryContentOperations(libraryOps, this, errorHandler, fileValidator, _dispatcher, _eventAggregator); _dispatcher.BeginInvoke(new Action(PerformLoad)); }
public ClaimInterFace(LoadedBinaryCache cache, IBinariesCache binaries, int maxBinariesToLoad) { _cache = cache; _binaries = binaries; _maxBinariesToLoad = maxBinariesToLoad; }
public LoadedBinaryCache(int maxBinariesToLoad, IBinariesCache binaries) { _claimInterface = new ClaimInterFace(this, binaries, maxBinariesToLoad); }