Esempio n. 1
0
        public ProductController(IOptionsSnapshot <Mongo> options, IOptionsSnapshot <Redis> caching, IOptionsSnapshot <Configs.JWT> secret, IHttpContextAccessor httpContextAccessor) : base(options, secret, httpContextAccessor)
        {
            CachingOptions = caching;
            RedisClient    = new Databases.Redis(CachingOptions);
            RedisItems     = new Repositories.Redis.Product(RedisClient);

            MongoItems = new Repositories.Mongo.Product(MongoClient);
            MongoSubs  = new Repositories.Mongo.SubCategory(MongoClient);
            MongoCats  = new Repositories.Mongo.Category(MongoClient);
            MongoRes   = new Repositories.Mongo.Resource(MongoClient);
        }
Esempio n. 2
0

        
Esempio n. 3
0
 public Product(Databases.Redis client) : base(client, "Product")
 {
 }