예제 #1
0
 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();
 }
예제 #2
0
 public TicketPrinter WithTaskBuilder(TicketPrintTaskBuilder ticketPrintTaskBuilder)
 {
     _ticketPrintTaskBuilder = ticketPrintTaskBuilder;
     return(this);
 }