Ejemplo n.º 1
0
 public BlogUtil(
     BlogContext db,
     UsersContext udb,
     IMemoryCache cache,
     IHttpContextAccessor contextAccessor,
     IUrlHelper urlHelper,
     MessageUtil msgUtil,
     AdminUtil adminUtil,
     UploadUtil uploadUtil,
     ExpUtil expUtil,
     IVisitCounter visitCounter,
     INickNameProvider nicknameProvider) : base(db, udb, cache, visitCounter, nicknameProvider)
 {
     _msgUtil         = msgUtil;
     _adminUtil       = adminUtil;
     _contextAccessor = contextAccessor;
     _urlHelper       = urlHelper;
     _uploadUtil      = uploadUtil;
     _expUtil         = expUtil;
     _visitCounter    = visitCounter;
 }
Ejemplo n.º 2
0
 public ExpUtil(BlogContext db, UsersContext udb, IMemoryCache cache, IHttpContextAccessor contextAccessor, MessageUtil msgUtil, AdminUtil adminUtil) : base(db, udb, cache)
 {
     _contextAccessor = contextAccessor;
     _adminUtil       = adminUtil;
     _msgUtil         = msgUtil;
 }