private async Task <IDictionary <string, Ingredient> > CreateAsync() { _logger.LogDebug("Creating ingredients dictionary"); var fileText = await _fileProxy.GetTextAsync("ingredients.json", _lastModified); _lastModified = fileText.LastModified; if (fileText.Text == null) { _logger.LogDebug("Ingredients file didn't change, using already cached one"); } return(fileText.Text == null ? _ingredients : Deserialize(fileText.Text)); }