hardcoded discovery

This commit is contained in:
EugeneTes
2026-04-20 10:43:36 +02:00
parent c94acc8bf7
commit 398a3e3db8

View File

@@ -54,6 +54,13 @@ public class PrintServerBootstrapper
} }
else else
{ {
// hardcoded discovery
// quick and dirty fix for testing without discovery - just bind a preconfigured discovery service with known printer IPs
// DO NOT REMOVE !!!
//var discovery = new PreconfiguredDiscoveryService();
//discovery.AddPrinter("192.168.1.124", "TM-T30III");
//_kernel.Bind<IDiscoveryService>().ToConstant(discovery).InSingletonScope();\
_kernel.Bind<IDiscoveryService>().To<DiscoveryService>().InSingletonScope(); _kernel.Bind<IDiscoveryService>().To<DiscoveryService>().InSingletonScope();
_kernel.Bind<IPrinterFactory>().To<EpsonPrinterFactory>(); _kernel.Bind<IPrinterFactory>().To<EpsonPrinterFactory>();
} }