Dry-run connection (PrinterSettings.EnablePrinting = false): records everything that would be sent, prints nothing. Queries return null.
Constructors
| Signature | Description |
# DryRunPrinterConnection() | |
Properties
| Property | Type | Description |
Jobs { get; } | IReadOnlyList<byte[]> | Snapshot of the recorded jobs (one entry per SendAsync call). |
Target { get; init; } | string | Optional connection that would have been used (for diagnostics). |
Text { get; } | string | All recorded data decoded as UTF-8. |
Methods
| Method Signature | Returns | Description |
# DisposeAsync() | ValueTask | |
# QueryAsync(string command, TimeSpan timeout, CancellationToken ct = default) | Task<string> | |
# SendAsync(byte[] data, CancellationToken ct = default) | Task | |