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); }
public Product(Databases.Redis client) : base(client, "Product") { }