public CacheService(IMemoryCache cache, ILibraryStore libraryStore, ILogger <CacheService> logger)
 {
     this._cache       = cache;
     this.libraryStore = libraryStore;
     this.logger       = logger;
     InitTimer();
 }
Esempio n. 2
0
 public SaveCommand(Library library, ILibraryStore store)
 {
     Ensure.NotNull(library, "library");
     Ensure.NotNull(store, "store");
     this.library = library;
     this.store   = store;
 }
Esempio n. 3
0
 public AppNavigator(App application, ILibraryStore store, IChangeTracker changeTracker)
 {
     Ensure.NotNull(application, "application");
     Ensure.NotNull(store, "store");
     Ensure.NotNull(changeTracker, "changeTracker");
     this.application   = application;
     this.store         = store;
     this.changeTracker = changeTracker;
 }
Esempio n. 4
0
        public MainViewModel(Library library, INavigator navigator, ILibraryStore store, IChangeTracker changeTracker)
            : base(library)
        {
            Ensure.NotNull(navigator, "navigator");
            Ensure.NotNull(changeTracker, "changeTracker");

            changeTracker.Added   += () => HasChange = true;
            changeTracker.Cleared += () => HasChange = false;

            Create            = new DelegateCommand(() => navigator.CreateMovieAsync(library));
            Edit              = new EditMovieCommand(library, navigator);
            Delete            = new DeleteMovieCommand(library.Movies, navigator, changeTracker);
            Save              = new SaveCommand(library, store);
            OpenConfiguration = new DelegateCommand(() => navigator.LibraryConfigurationAsync(library));
        }
Esempio n. 5
0
 public LibraryController(IFileHelper fileHelper, ILibraryStore libraryStore)
 {
     _fileHelper   = fileHelper;
     _libraryStore = libraryStore;
 }
Esempio n. 6
0
 public TrackController(ILibraryStore libraryStore, IPodcastStore podcastStore)
 {
     _libraryStore = libraryStore;
     _podcastStore = podcastStore;
 }
 public LibraryController(ICacheService cacheService, ILibraryStore libraryStore)
 {
     this._cacheService = cacheService;
     this._libraryStore = libraryStore;
 }
 public LibraryManager(ILibraryStore store)
 {
     _store = store;
 }