public GetPackagesService( INuGetPackageRepository nuGetPackagesRepository, IUiLibraryPackageRepository uiLibraryPackageRepository) { _nuGetPackagesRepository = nuGetPackagesRepository; _uiLibraryPackageRepository = uiLibraryPackageRepository; }
public CachedUiLibraryPackageRepository( IUiLibraryPackageRepository repository, ICacheManager cacheManager) { _repository = repository; _cacheManager = cacheManager; }
public HomeController() { _nuGetPackagesRepository = new CachedNuGetPackageRepository( new NuGetPackageRepository(), new InMemoryCacheManager() ); _uiLibraryPackageRepository = new CachedUiLibraryPackageRepository( new NpmUiLibraryPackageRepository(), new InMemoryCacheManager() ); _outputView = "~/Views/MarkdownOutput/MarkdownOutput.cshtml"; }