IPrinterConnection
public interface IPrinterConnection : IAsyncDisposableA bidirectional (where supported) raw connection to a label printer.
Methods
| Method Signature | Returns | Description |
|---|---|---|
# QueryAsync(string command, TimeSpan timeout, CancellationToken ct = default) | Task<string> | Sends a query command (e.g. "~HS") and returns the response, or null when the transport is write-only or nothing arrived in time. |
# SendAsync(byte[] data, CancellationToken ct = default) | Task | Sends raw bytes (ZPL, EPL, graphics) to the printer. |

