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();
 }
 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();
 }
Exemple #3
0
 public TicketPrinter WithTaskBuilder(TicketPrintTaskBuilder ticketPrintTaskBuilder)
 {
     _ticketPrintTaskBuilder = ticketPrintTaskBuilder;
     return(this);
 }
Exemple #4
0
 public TicketPrinter WithTaskBuilder(TicketPrintTaskBuilder ticketPrintTaskBuilder)
 {
     _ticketPrintTaskBuilder = ticketPrintTaskBuilder;
     return this;
 }