コード例 #1
0
 public void AddScreen(Screen screen)
 {
     _logger.LogInformation($"AddScreen, Name = {screen.Name}");
     screen.Name += $"#{screen.Id}";
     _screenRepository.AddScreen(screen);
     _cache.RemoveValueFromCache(AllScreens);
     _logger.LogInformation("Remove all screens from cache");
 }
コード例 #2
0
 public void AddCategory(Category category)
 {
     _categoryRepository.AddCategory(category);
     _cache.RemoveValueFromCache(AllCategories);
     _logger.LogInformation($"Remove all categories from cache");
 }
コード例 #3
0
 public void AddHive(Hive hive)
 {
     _hiveRepository.AddHive(hive);
     _cache.RemoveValueFromCache(AllHives);
     _logger.LogInformation("Remove all hives from cache");
 }