コード例 #1
0
 public GetPackagesService(
     INuGetPackageRepository nuGetPackagesRepository,
     IUiLibraryPackageRepository uiLibraryPackageRepository)
 {
     _nuGetPackagesRepository    = nuGetPackagesRepository;
     _uiLibraryPackageRepository = uiLibraryPackageRepository;
 }
 public CachedUiLibraryPackageRepository(
     IUiLibraryPackageRepository repository,
     ICacheManager cacheManager)
 {
     _repository   = repository;
     _cacheManager = cacheManager;
 }
コード例 #3
0
        public HomeController()
        {
            _nuGetPackagesRepository = new CachedNuGetPackageRepository(
                new NuGetPackageRepository(),
                new InMemoryCacheManager()
                );

            _uiLibraryPackageRepository = new CachedUiLibraryPackageRepository(
                new NpmUiLibraryPackageRepository(),
                new InMemoryCacheManager()
                );

            _outputView = "~/Views/MarkdownOutput/MarkdownOutput.cshtml";
        }