public PrinterService(ISettingService settingService, ICacheService cacheService, IExpressionService expressionService, ILogService logService,
                       TicketFormatter ticketFormatter, FunctionRegistry functionRegistry, TicketPrintTaskBuilder ticketPrintTaskBuilder)
 {
     _cacheService           = cacheService;
     _logService             = logService;
     _ticketFormatter        = ticketFormatter;
     _functionRegistry       = functionRegistry;
     _ticketPrintTaskBuilder = ticketPrintTaskBuilder;
     _functionRegistry.RegisterFunctions();
 }
Esempio n. 2
0
 public TicketPrinter WithTaskBuilder(TicketPrintTaskBuilder ticketPrintTaskBuilder)
 {
     _ticketPrintTaskBuilder = ticketPrintTaskBuilder;
     return(this);
 }