예제 #1
0
 public HeroesRepository(
     ProductImageDbContext context,
     IHttpClientFactory httpClientFactory)
 {
     _context           = context;
     _httpClientFactory = httpClientFactory;
 }
예제 #2
0
 public ImageRepository(ProductImageDbContext context, IHttpClientFactory httpClientFactory)
 {
     _context = context ??
                throw new ArgumentNullException(nameof(context));
     _httpClientFactory = httpClientFactory ??
                          throw new ArgumentNullException(nameof(httpClientFactory));
 }
예제 #3
0
        public AppController(ProductImageDbContext context, IMailService mail)
        {
            //email

            _mail    = mail;
            _context = context;
        }
예제 #4
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
예제 #5
0
 public ProductImageSeeder(ProductImageDbContext context, IHostingEnvironment hosting)
 {
     _context = context;
     _hosting = hosting;
 }
예제 #6
0
 public AppProductsController(ProductImageDbContext context)
 {
     _context = context;
 }