public HomeController(IPostService postService, ILogger <HomeController> logger, IHomeCacheService homeCacheService, IConfiguration configuration) { _postService = postService ?? throw new ArgumentNullException(nameof(postService)); _homeCacheService = homeCacheService ?? throw new ArgumentNullException(nameof(homeCacheService)); _logger = logger; _configuration = configuration; }
public HomeCacheDiagnosticProcessor(IHomeCacheService homeCacheService) { _homeCacheService = homeCacheService; }