Exemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && productDocumentRepository != null)
     {
         productDocumentRepository.Dispose();
         productDocumentRepository = null;
     }
 }
Exemplo n.º 2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // Free managed resources
         if (db != null)
         {
             db.Dispose();
             db = null;
         }
         if (productDocumentRepository != null)
         {
             productDocumentRepository.Dispose();
             productDocumentRepository = null;
         }
     }
 }
 public ProductDocumentService(IProductDocumentRepository productDocumentRepository, IUrlFileService urlFileService, IUnitOfWork unitOfWork)
 {
     _productDocumentRepository = productDocumentRepository;
     _urlFileService            = urlFileService;
     _unitOfWork = unitOfWork;
 }
Exemplo n.º 4
0
 public ProductDocumentService(ILogger logger, IProductDocumentRepository productDocumentRepo, IDocumentFileService documentFileServ)
 {
     log = logger;
     productDocumentRepository = productDocumentRepo;
     documentFileService       = documentFileServ;
 }
Exemplo n.º 5
0
 public ProductRepository(ILogger logger, IProductDocumentRepository productDocumentRepo)
 {
     log = logger;
     productDocumentRepository = productDocumentRepo;
 }