Exemple #1
0
 public TemplateService(IGeneralCache <Template> cache, ITemplateRepository templates, ICategoryRepository categories)
 {
     _cache      = cache ?? throw new ArgumentNullException(nameof(cache));
     _templates  = templates ?? throw new ArgumentNullException(nameof(templates));
     _categories = categories ?? throw new ArgumentNullException(nameof(categories));
 }
Exemple #2
0
 public RenderingService(IGeneralCache <Template> cache, ICache <PartialCacheItem> partials, ITemplateRepository templateRepository)
 {
     _cache = cache;
     _templateRepository = templateRepository;
     _partials           = partials;
 }