コード例 #1
0
 public FileDownloadService()
 {
     _invoiceWorker   = ObjectFactory.GetInstance <IInvoiceWorker>();
     _invoiceService  = ObjectFactory.GetInstance <IInvoiceService>();
     _invoiceSender   = ObjectFactory.GetInstance <IInvoiceSender>();
     _templateService = ObjectFactory.GetInstance <ITemplateService>();
     _contextProvider = ObjectFactory.GetInstance <ITrexContextProvider>();
 }
コード例 #2
0
 public FileDownloadService(IInvoiceWorker invoiceWorker, IInvoiceService invoiceService, IInvoiceSender invoiceSender,
                            ITemplateService templateService, ITrexContextProvider contextProvider)
 {
     _invoiceWorker   = invoiceWorker;
     _invoiceService  = invoiceService;
     _invoiceSender   = invoiceSender;
     _templateService = templateService;
     _contextProvider = contextProvider;
 }