Пример #1
0
 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();
 }
 public TicketPrinter WithTaskBuilder(TicketPrintTaskBuilder ticketPrintTaskBuilder)
 {
     _ticketPrintTaskBuilder = ticketPrintTaskBuilder;
     return(this);
 }