예제 #1
0
 public IndexController(IAPIProvider apiProvider,
                        Storage storage,
                        PisstaubeCacheDbContextFactory cache,
                        BeatmapDownloader downloader,
                        SetDownloader setDownloader,
                        PisstaubeDbContext dbContext)
 {
     _apiProvider   = apiProvider;
     _cache         = cache;
     _downloader    = downloader;
     _setDownloader = setDownloader;
     _dbContext     = dbContext;
     _fileStorage   = storage.GetStorageForDirectory("files");
 }
예제 #2
0
 public IndexController(APIAccess apiAccess,
                        Storage storage,
                        PisstaubeCacheDbContextFactory cache,
                        BeatmapDownloader downloader,
                        SetDownloader setDownloader,
                        PisstaubeDbContextFactory contextFactory)
 {
     _apiAccess      = apiAccess;
     _storage        = storage;
     _cache          = cache;
     _downloader     = downloader;
     _setDownloader  = setDownloader;
     _contextFactory = contextFactory;
     _fileStorage    = storage.GetStorageForDirectory("files");
 }