示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
 public VisualizationPageCache(IConfiguration config, INodeInstanceCache nodeInstanceCache, ICategoryCache categoryCache, IAreaCache areaCache, ILogicInstanceCache logicInstanceCache) : base(config)
 {
     _nodeInstanceCache  = nodeInstanceCache;
     _categoryCache      = categoryCache;
     _areaCache          = areaCache;
     _logicInstanceCache = logicInstanceCache;
 }
示例#4
0
        public CategoryCommand(ICategoryStore store, ICategoryCache cache)
        {
            Ensure.Any.IsNotNull(store, nameof(store));
            Ensure.Any.IsNotNull(cache, nameof(cache));

            _store = store;
            _cache = cache;
        }
示例#5
0
 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;
 }
示例#9
0
 public TypeAppService(ICategoryCache categoryCache)
 {
     _categoryCache = categoryCache;
 }
示例#10
0
 public CategoryController(AutomaticaContext dbContext, ICategoryCache categoryCache, ICategoryGroupCache categoryGroupCache) : base(dbContext)
 {
     _categoryCache      = categoryCache;
     _categoryGroupCache = categoryGroupCache;
 }
示例#11
0
 public CategoryAppService(IRepository <Mall_Category> categoryRepository, ICategoryCache categoryCache) : base(categoryRepository)
 {
     _categoryRepository = categoryRepository;
     _categoryCache      = categoryCache;
 }
示例#12
0
 /// <summary>
 /// 构造函数
 /// </summary>
 private LoginInfoRegistry()
 {
     ICacheService cacheService = new AspNetCacheService();
     this.m_loginInfos = cacheService.GetCategoryCache<string, LoginInfo>("loginInfos");
     this.AutoRelogin = true;
 }
示例#13
0
 public CategoryCacheTest(StartupFixture startupFixture)
 {
     _categoryCache = startupFixture.ServiceProvider.GetRequiredService <ICategoryCache>();
 }