job status reporting

This commit is contained in:
EugeneTes
2026-02-04 11:39:14 +01:00
parent 71ba4c1ff6
commit 2748c6586e
7 changed files with 54 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ using Inspectron.Epson.PrintServer.Printers;
using Inspectron.Epson.PrintServer.Printers.Utils;
using Inspectron.Epson.PrintServer.PrintServices;
using EpsonPrintService;
using Inspectron.Epson.PrintServer.JobStatusReporters;
using Inspectron.Epson.Queue;
StandardKernel kernel = new StandardKernel();
@@ -67,7 +68,7 @@ kernel.Bind<ILogger>().ToMethod(ctx =>
kernel.Bind<IWrapperPrinterFactory>().To<PrinterWrapperFactory>().InSingletonScope();
kernel.Bind<IPrinterConfigurationSource>().To<FixedConfigurationSource>();
kernel.Bind<IReceiptConverterFactory>().To<ReceiptConverterFactory>().InSingletonScope();
kernel.Bind<IJobStatusReporter>().To<NullJobStatusReporter>();
kernel.Bind<IJobStatusReporter>().To<JamesStatusReporter>();
kernel.Bind<PrintServer>().ToSelf().InSingletonScope();
kernel.Bind<IDiscoveredPrintersReceiver>().To<JamesDiscoveredPrintersReceiver>().InSingletonScope();
kernel.Bind<PrinterDiscoveryBackgroundTask>().ToSelf().InSingletonScope();