Example #1
0
 public SnPictureTypeService(snblogContext service, ICacheUtil cacheutil)
 {
     _service   = service;
     _cacheutil = (CacheUtil)cacheutil;
 }
Example #2
0
 public SnNavigationService(snblogContext service, ICacheUtil cacheutil)
 {
     _service   = service;
     _cacheutil = (CacheUtil)cacheutil;
 }
Example #3
0
        private readonly snblogContext _coreDbContext;//DB

        public SnTalkService(snblogContext coreDbContext)
        {
            _coreDbContext = coreDbContext;
        }
 private readonly ISnVideoService _service; //IOC依赖注入
 public SnVideoController(ISnVideoService service, snblogContext coreDbContext)
 {
     _service       = service;
     _coreDbContext = coreDbContext;
 }
Example #5
0
 public SnleaveService(snblogContext service, ICacheUtil cacheutil)
 {
     _service   = service;
     _cacheutil = (CacheUtil)cacheutil;
 }
Example #6
0
 public SnSortService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext, snblogContext service, ICacheUtil cacheutil) : base(repositoryFactory, mydbcontext)
 {
     _service   = service;
     _cacheutil = (CacheUtil)cacheutil;
 }
 public SnArticleService(ICacheUtil cacheUtil, snblogContext coreDbContext, ILogger <SnArticleService> logger)
 {
     _service   = coreDbContext;
     _cacheutil = (CacheUtil)cacheUtil;
     _logger    = logger ?? throw new ArgumentNullException(nameof(Logger));
 }
 private readonly snblogContext _coreDbContext;//DB
 public SnVideoTypeService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext, snblogContext coreDbContext) : base(repositoryFactory, mydbcontext)
 {
     _coreDbContext = coreDbContext;
 }