Configuration & Integrations — Printing
L3StableNuGet: v1.0.0Local HEAD: v2.0.0AOT: Partial
Configure TCP sockets, pooled connections, serial ports, retry policies, and SignalR dispatchers across the 1.0.0 packages.
TCP, Pooled TCP & Serial DI Extensions (EricksonLopez.Printing)
Section titled “TCP, Pooled TCP & Serial DI Extensions (EricksonLopez.Printing)”PrintingServiceCollectionExtensions(namespace EricksonLopez.Printing;): Registers singletonIPrinterClientimplementations viaAddTcpPrinter,AddKeyedTcpPrinter,AddPooledTcpPrinter, andAddKeyedPooledTcpPrinterconfiguringTcpPrinterClientOptions(Host,Port,TimeoutMs,NoDelay,LingerSeconds).PrintingSerialServiceCollectionExtensions(namespace EricksonLopez.Printing;): Even though the class ships inEricksonLopez.Printing.Serial, itsAddSerialPrinterandAddKeyedSerialPrintermethods reside innamespace EricksonLopez.Printing;!
Resilience, Imaging, Status & SignalR (1.0.0)
Section titled “Resilience, Imaging, Status & SignalR (1.0.0)”- Retries: Wrap any
IPrinterClientviaclient.WithRetry(options => ...)(ResilientPrintingExtensions,ResilientPrinterOptions). - Imaging: Convert bitmaps with
MonochromeBitmapConverter+EscPosDitherAlgorithm(EricksonLopez.Printing.EscPos.Imaging) orZplGraphicFieldConverter+ZplDitherAlgorithm(EricksonLopez.Printing.Zpl.Imaging). - Status polling: Query drawer/paper/cover state with
EscPosStatusCommandsandEscPosStatusParser(EricksonLopez.Printing.EscPos.Status). - SignalR (
IncompatibleAOT):AddPrintingSignalR(...)(EricksonLopez.Printing.SignalR) registersPrinterHubandIHubPrinterDispatcherfor browser-to-local-agent print routing (IsAotCompatible=false).