internal static void RemoveCategory(this ICategoryCache cache, ProfileFilter filter) { Ensure.Any.IsNotNull(cache, nameof(cache)); Ensure.Any.IsNotNull(filter, nameof(filter)); cache.RemoveCategory(filter.CategoryGroup, filter.CategoryName); }
internal static void RemoveCategory(this ICategoryCache cache, Category category) { Ensure.Any.IsNotNull(cache, nameof(cache)); Ensure.Any.IsNotNull(category, nameof(category)); cache.RemoveCategory(category.Group, category.Name); }
public VisualizationPageCache(IConfiguration config, INodeInstanceCache nodeInstanceCache, ICategoryCache categoryCache, IAreaCache areaCache, ILogicInstanceCache logicInstanceCache) : base(config) { _nodeInstanceCache = nodeInstanceCache; _categoryCache = categoryCache; _areaCache = areaCache; _logicInstanceCache = logicInstanceCache; }
public CategoryCommand(ICategoryStore store, ICategoryCache cache) { Ensure.Any.IsNotNull(store, nameof(store)); Ensure.Any.IsNotNull(cache, nameof(cache)); _store = store; _cache = cache; }
public TaskManager(IWorkerCache workerCache, IPlaceCache placeCache, IObjectCache objectCache, ICategoryCache categoryCache, IShelfCache shelfCache, ICargoTypeCache cargoTypeCache, ISourceCache sourceCache) { _workerCache = workerCache; _placeCache = placeCache; _objectCache = objectCache; _categoryCache = categoryCache; _shelfCache = shelfCache; _cargoTypeCache = cargoTypeCache; _sourceCache = sourceCache; }
public ProfileSearchQuery( ICategoryQuery query, IProfileStore profileStore, ICategoryLinkStore linkStore, IProfileCache profileCache, ICategoryCache cache) { Ensure.Any.IsNotNull(profileStore, nameof(profileStore)); Ensure.Any.IsNotNull(linkStore, nameof(linkStore)); Ensure.Any.IsNotNull(cache, nameof(cache)); Ensure.Any.IsNotNull(query, nameof(query)); Ensure.Any.IsNotNull(profileCache, nameof(profileCache)); _profileStore = profileStore; _linkStore = linkStore; _cache = cache; _query = query; _profileCache = profileCache; }
public ProfileChangeProcessor( IProfileStore profileStore, ICategoryStore categoryStore, ICategoryLinkStore linkStore, IEventTrigger eventTrigger, IProfileCache profileCache, ICategoryCache cache) { Ensure.Any.IsNotNull(profileStore, nameof(profileStore)); Ensure.Any.IsNotNull(categoryStore, nameof(categoryStore)); Ensure.Any.IsNotNull(linkStore, nameof(linkStore)); Ensure.Any.IsNotNull(profileCache, nameof(profileCache)); Ensure.Any.IsNotNull(cache, nameof(cache)); Ensure.Any.IsNotNull(eventTrigger, nameof(eventTrigger)); _profileStore = profileStore; _categoryStore = categoryStore; _linkStore = linkStore; _eventTrigger = eventTrigger; _profileCache = profileCache; _cache = cache; }
public ProductRespository(AledrogoContext context, ICategoryCache categoryCache) { _context = context; _categoryCache = categoryCache; }
public TypeAppService(ICategoryCache categoryCache) { _categoryCache = categoryCache; }
public CategoryController(AutomaticaContext dbContext, ICategoryCache categoryCache, ICategoryGroupCache categoryGroupCache) : base(dbContext) { _categoryCache = categoryCache; _categoryGroupCache = categoryGroupCache; }
public CategoryAppService(IRepository <Mall_Category> categoryRepository, ICategoryCache categoryCache) : base(categoryRepository) { _categoryRepository = categoryRepository; _categoryCache = categoryCache; }
/// <summary> /// 构造函数 /// </summary> private LoginInfoRegistry() { ICacheService cacheService = new AspNetCacheService(); this.m_loginInfos = cacheService.GetCategoryCache<string, LoginInfo>("loginInfos"); this.AutoRelogin = true; }
public CategoryCacheTest(StartupFixture startupFixture) { _categoryCache = startupFixture.ServiceProvider.GetRequiredService <ICategoryCache>(); }