EricksonLopez.Printing
dotnet-printing · Integraciones y Protocolos
En esta página (20 secciones)
1. Identidad, Nivel y Perfil de Madurez#
2. Propuesta de Valor y Problema que Resuelve#
High-performance, Native AOT-ready .NET printing ecosystem for ESC/POS thermal receipts and Zebra ZPL II industrial labels over TCP socket pooling, RS-232 serial, and SignalR cloud-to-edge bridge.
Windows Print Spooler y System.Drawing atan la impresión POS/almacén a drivers Windows y lanzan excepciones no controladas cuando falta papel o la impresora está desconectada.
3. Instalación Rápida#
Paquete principal: EricksonLopez.Printing
dotnet add package EricksonLopez.Printing --version 1.0.0<PackageReference Include="EricksonLopez.Printing" Version="1.0.0" /><PackageVersion Include="EricksonLopez.Printing" Version="1.0.0" />4. Métricas Verificadas del Ecosistema#
Instantánea recuperada UTC: 2026-12-01
5. Cuándo Usar y Cuándo NO Usar#
Cuándo usar
- Imprimes tickets térmicos ESC/POS o etiquetas industriales Zebra ZPL II multiplataforma por TCP pooling, puerto serie RS-232 o puente SignalR con Result<bool>.
Cuándo NO usar
- Generas reportes PDF multipágina o documentos de oficina para impresoras láser de escritorio.
6. Capacidades Principales e Invariantes de Diseño#
ESC/POS, ZPL II e Imagenología Managed
Conversión monocromática Floyd-Steinberg en C# puro administrado sin dependencias nativas de SkiaSharp ni System.Drawing.
TCP Pooling, Serie y Telemetría
Soporta PooledTcpPrinterClient, puertos serie RS-232, puente SignalR y sensores DLE EOT de papel/tapa.
7. Paquetes NuGet y Adaptadores Incluidos#
| ID del Paquete | Estado | NuGet / Local | TFMs | Estado AOT | Descargas | Descripción |
|---|---|---|---|---|---|---|
| EricksonLopez.PrintingPrincipal | Publicado | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Completo | 258 | Foundational abstractions and network socket printer drivers for thermal receipt and industrial label printing. Features functional result handling and Native AOT compatibility. |
| EricksonLopez.Printing.EscPos | Publicado | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Completo | 177 | Epson ESC/POS thermal receipt command compiler for .NET. Builds POS receipts, text styles, barcodes (Code128), QR codes, cash drawer triggers, and partial paper cuts with Native AOT compatibility. |
| EricksonLopez.Printing.Zpl | Publicado | v1.0.0 / v2.1.0 | net8.0, net9.0, net10.0 | AOT: Completo | 152 | Zebra Programming Language (ZPL II) industrial barcode and label generator for .NET. Supports high-resolution text, boxes, Code128 barcodes, and QR codes with Native AOT compatibility. |
| EricksonLopez.Printing.SignalR | Publicado | v1.0.0 / v3.0.0 | net8.0, net9.0, net10.0 | AOT: Incompatible | 145 | Real-time SignalR hardware print bridge for EricksonLopez.Printing. Dispatches print jobs to local edge printer agents via ASP.NET Core SignalR hubs. |
| EricksonLopez.Printing.EscPos.Imaging | Publicado | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Completo | 143 | High-performance monochrome image processing and raster bit image generator for ESC/POS thermal receipt printers. Native AOT-compatible compatible with zero external native dependencies. |
| EricksonLopez.Printing.Serial | Publicado | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Completo | 142 | Serial COM / RS-232 / Virtual COM port transport driver for thermal receipt and label printers. |
| EricksonLopez.Printing.EscPos.Status | Publicado | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Completo | 141 | Real-time hardware status monitoring, sensor telemetry, and parsing for ESC/POS thermal receipt printers. Native AOT-compatible compatible. |
| EricksonLopez.Printing.Zpl.Imaging | Publicado | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Completo | 139 | High-performance monochrome image processing and ^GF Graphic Field generator for Zebra ZPL II industrial label printers. Native AOT-compatible compatible with zero external native dependencies. |
8. Ejemplo Quick Start#
Basado en APIs públicas verificadas de EricksonLopez.Printing. Compila con `<ImplicitUsings>disable</ImplicitUsings>` e importaciones explícitas.
using EricksonLopez.Printing;
using EricksonLopez.Printing.EscPos;
using var builder = new EscPosBuilder();
IPrintDocument document = builder
.Initialize()
.Align(EscPosAlignment.Center)
.DoubleSize()
.Line("METROPOLITAN MARKET")
.FontSize(widthMultiplier: 1, heightMultiplier: 1)
.Align(EscPosAlignment.Left)
.Divider(width: 42, character: '-')
.TableRow("1 Artisan Sourdough Loaf", "$6.50", totalWidth: 42, fillChar: '.')
.Cut()
.Build();9. Arquitectura y Flujo de Dependencias#
Renderizando diagrama…
flowchart LR lib_printing["EricksonLopez.Printing (L3)"] lib_result["EricksonLopez.Result (L0)"] lib_printing --> lib_result
Ver descripción textual y tabla accesible
1 dependencias hacia librerías aguas arriba y 0 librerías dependientes aguas abajo verificadas en dependencies.json.
| Dirección | Librería | Nivel | Tipos de Relación |
|---|---|---|---|
| Aguas arriba | EricksonLopez.Result | L0 | Tiempo de compilación, Paquete NuGet |
flowchart LR
lib_printing["EricksonLopez.Printing (L3)"]
lib_result["EricksonLopez.Result (L0)"]
lib_printing --> lib_result10. Target Frameworks y Matriz Native AOT / Trimming#
Inspección MSBuild `.csproj` sobre 8 paquetes: 7 Full, 0 Partial, 1 Incompatible, 0 NotApplicable (analizadores/generadores).
| ID del Paquete | IsAotCompatible | EnableTrimAnalyzer | Estado AOT Verificado | Target Frameworks |
|---|---|---|---|---|
| EricksonLopez.Printing | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.EscPos | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.Zpl | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.SignalR | false | false | Incompatible | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.EscPos.Imaging | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.Serial | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.EscPos.Status | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.Zpl.Imaging | true | true | Full | net8.0, net9.0, net10.0 |
11. Dependencias Aguas Arriba y Dependientes Aguas Abajo#
Dependencias Aguas Arriba (1)
Dependientes Aguas Abajo (0)
Ninguna otra librería EricksonLopez.* depende actualmente de esta familia.
12. Adaptadores Opcionales e Integraciones Externas#
Aristas de Adaptadores Internos y Paquetes de Integración
No se registran aristas de adaptadores opcionales ni paquetes de integración para esta librería.
Dependencias NuGet Externas Verificadas (4)
13. Resumen de Configuración y Registro en DI#
Puntos de Entrada DI y Configuración Verificados
PrintingSerialServiceCollectionExtensions.AddKeyedSerialPrinterRegisters a keyed `SerialPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingSerialServiceCollectionExtensions.AddSerialPrinterRegisters a `SerialPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingServiceCollectionExtensions.AddKeyedPooledTcpPrinterRegisters a keyed persistent `PooledTcpPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingServiceCollectionExtensions.AddKeyedTcpPrinterRegisters a keyed `TcpPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingServiceCollectionExtensions.AddPooledTcpPrinterRegisters a persistent `PooledTcpPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingServiceCollectionExtensions.AddTcpPrinterRegisters a `TcpPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingSignalRServiceCollectionExtensions.AddPrintingSignalRRegisters `ITenantPrintScopeValidator`, `IHubPrinterDispatcher`, and SignalR dependencies in the service collection.
Tipos Públicos y Contratos Clave
EricksonLopez.Printing.IPrintDocument (interface)Defines a print document payload containing raw printer control sequences.
EricksonLopez.Printing.IPrinterClient (interface)Defines a client driver capable of transmitting print documents to a physical or network printer.
EricksonLopez.Printing.PooledTcpPrinterClient (class)Provides high-throughput network socket printing using a persistent TCP connection.
EricksonLopez.Printing.PrintingErrorCodes (class)Provides standard error code constants produced by the printing infrastructure.
EricksonLopez.Printing.PrintingEventIds (class)Provides pre-allocated logging event identifiers for structured telemetry.
EricksonLopez.Printing.PrintingSerialServiceCollectionExtensions (class)Provides extension methods for registering serial printing services in an `IServiceCollection`.
EricksonLopez.Printing.PrintingServiceCollectionExtensions (class)Provides extension methods for registering TCP printing services in an `IServiceCollection`.
EricksonLopez.Printing.RawPrintDocument (class)Represents an in-memory print document backed by a raw byte array.
EricksonLopez.Printing.ResilientPrinterClient (class)Provides resilient retry and exponential backoff capabilities by decorating an underlying `IPrinterClient`.
EricksonLopez.Printing.ResilientPrinterOptions (class)Specifies configuration options for resilient print operations and retry policies.
EricksonLopez.Printing.ResilientPrintingExtensions (class)Provides extension methods for decorating printer clients with resilience and retry capabilities.
EricksonLopez.Printing.SerialPrinterClientOptions (class)Specifies configuration options for communicating with a POS receipt or label printer over a serial COM or RS-232 port.
14. Benchmarks de Rendimiento Verificados#
Todas las mediciones verificadas provienen estrictamente de `BenchmarkDotNet.Artifacts` ejecutados sobre .NET RyuJIT (existen 0 ejecuciones NativeAOT en esta instantánea).
No se verificaron archivos `BenchmarkDotNet.Artifacts` no-MEGA-AUDIT para esta librería en la instantánea (`hasBenchmarks: false`).
15. Historial de Versiones y Estado NuGet vs Repositorio#
Desfase de versiones detectado: la última versión publicada en NuGet.org es v1.0.0, mientras el HEAD del repositorio local está en v2.0.0.
| Versión | Origen | Fecha de Publicación | Resumen |
|---|---|---|---|
| v1.0.0 ↗ | github | 2026-09-24 | Ecosystem Packages in this release | Package | Version | |---------|---------| | `EricksonLopez.Printing` | `1.0.0` | | `EricksonLopez.Printing.EscPos` | `1.0.0` | | `EricksonLopez.Printing.EscPos.Imaging` | `1.0.0` | | `EricksonLopez.Printing.EscPos.Status` | `1.0.0` | | `EricksonLopez.Printing.Serial` | `1.0.0` | | `EricksonLopez.Printing.SignalR` | `1.0.0` | | `EricksonLopez.Printing.Zpl` | ... |
| v1.0.0 ↗ | nuget | 2026-09-24 | Published EricksonLopez.Printing 1.0.0 to NuGet.org. |
16. Librerías Complementarias y Relacionadas#
Librerías en el mismo nivel, capa arquitectónica o vinculadas directamente mediante aristas de dependencia.
17. Documentación, API Reference y Enlaces del Portal#
Documentación Conceptual (Starlight) →
Referencia de API XML Extraída →
8 namespaces · 46 tipos · 232 miembros
Mapa de Dependencias del Ecosistema →
Centro de Aprendizaje y Manual →
Las páginas conceptuales por librería en Starlight se completan en M4; las páginas de API Reference en M3.2.
18. Repositorio Fuente, Licencia y Contribución#
Publicado bajo Licencia MIT. Todos los ensamblados cumplen los invariantes de compilación EricksonLopez.*: importaciones explícitas, firma fuerte (`EricksonLopez.snk`) y metadatos de autor en ASCII (`Erickson Lopez`).
19. Resolución de Problemas, Riesgos y Migración#
- EricksonLopez.Printing.SignalR declara IsAotCompatible=false; los paquetes núcleo ESC/POS, ZPL y Serial son Full AOT.
- Desfase de versiones detectado: la última versión publicada en NuGet.org es v1.0.0, mientras el HEAD del repositorio local está en v2.0.0.
20. Evidencia de Calidad y Verificación#
- Firma Fuerte (`EricksonLopez.snk`)
- EricksonLopez.snk
- `ImplicitUsings=disable`
- disable
- Extracción de Documentación XML
- Verificado (8 namespaces, 46 tipos, 232 miembros)
- Atributos MSBuild AOT / Trimming
- 7 Full / 0 Partial / 1 Incompatible / 0 N/A
- Artefactos BenchmarkDotNet
- 0 total (0 measured, 0 na_error)
Límites Explícitos de Verificación y Alcance
- Todas las mediciones verificadas provienen estrictamente de `BenchmarkDotNet.Artifacts` ejecutados sobre .NET RyuJIT (existen 0 ejecuciones NativeAOT en esta instantánea).