public CacheService(IMemoryCache cache, ILibraryStore libraryStore, ILogger <CacheService> logger)
 {
     this._cache       = cache;
     this.libraryStore = libraryStore;
     this.logger       = logger;
     InitTimer();
 }
예제 #2
0
 public SaveCommand(Library library, ILibraryStore store)
 {
     Ensure.NotNull(library, "library");
     Ensure.NotNull(store, "store");
     this.library = library;
     this.store   = store;
 }
예제 #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;
 }
예제 #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));
        }
예제 #5
0
 public LibraryController(IFileHelper fileHelper, ILibraryStore libraryStore)
 {
     _fileHelper   = fileHelper;
     _libraryStore = libraryStore;
 }
예제 #6
0
 public TrackController(ILibraryStore libraryStore, IPodcastStore podcastStore)
 {
     _libraryStore = libraryStore;
     _podcastStore = podcastStore;
 }
 public LibraryController(ICacheService cacheService, ILibraryStore libraryStore)
 {
     this._cacheService = cacheService;
     this._libraryStore = libraryStore;
 }
예제 #8
0
 public LibraryManager(ILibraryStore store)
 {
     _store = store;
 }