From 398a3e3db8079c3e308b377e3d05a7100b1f44db Mon Sep 17 00:00:00 2001 From: EugeneTes Date: Mon, 20 Apr 2026 10:43:36 +0200 Subject: [PATCH] hardcoded discovery --- EpsonPrintService/PrintServerBootstrapper.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/EpsonPrintService/PrintServerBootstrapper.cs b/EpsonPrintService/PrintServerBootstrapper.cs index 043cd7d..3c1c8e8 100644 --- a/EpsonPrintService/PrintServerBootstrapper.cs +++ b/EpsonPrintService/PrintServerBootstrapper.cs @@ -54,6 +54,13 @@ public class PrintServerBootstrapper } 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().ToConstant(discovery).InSingletonScope();\ + _kernel.Bind().To().InSingletonScope(); _kernel.Bind().To(); }