Beispiel #1
0
        public LetterGenerator(IAdjustmentLettersConfiguration config, IAsposeWrapper aspose)
        {
            this.pdfTemplate = config.PdfLetterTemplate;

            var license = new License();
            //// Instantiate license file
            license.SetLicense("Aspose.Pdf.lic");
            //// Set the value to indicate that license will be embedded in the application
            license.Embedded = true;

            this.aspose = aspose;
        }
Beispiel #2
0
        public LetterGenerator(IAdjustmentLettersConfiguration config, IAsposeWrapper aspose)
        {
            this.pdfTemplate = config.PdfLetterTemplate;

            var license = new License();

            //// Instantiate license file
            license.SetLicense("Aspose.Pdf.lic");
            //// Set the value to indicate that license will be embedded in the application
            license.Embedded = true;

            this.aspose = aspose;
        }
 public AdjustmentLettersRequestProcessor(
     ILifetimeScope component,
     IExchangePublisher <CreateBatchAdjustmentLettersResponse> publisher,
     IMessageToBatchConverter requestSplitter,
     ILetterGenerator letterGenerator,
     IFileWriter fileWriter,
     IPathHelper pathHelper,
     IFileReader fileReader,
     IAsposeWrapper asposeWrapper,
     IReferenceDbContext dbContext = null)
 {
     this.component        = component;
     this.publisher        = publisher;
     this.messageConverter = requestSplitter;
     this.letterGenerator  = letterGenerator;
     this.fileWriter       = fileWriter;
     this.pathHelper       = pathHelper;
     this.fileReader       = fileReader;
     this.asposeWrapper    = asposeWrapper;
     this.dbContext        = dbContext;
 }