zplCore.comzplCore.com

StreamPrinterConnection

public sealed class StreamPrinterConnection : IPrinterConnection, IAsyncDisposable

Writes to (and reads from) any caller-owned stream.

Constructors

SignatureDescription
# StreamPrinterConnection(Stream stream, bool leaveOpen = true)Writes to (and reads from) any caller-owned stream.

Properties

PropertyTypeDescription
Stream { get; }Stream

Methods

Method SignatureReturnsDescription
# DisposeAsync()ValueTask
# QueryAsync(string command, TimeSpan timeout, CancellationToken ct = default)Task<string>
# SendAsync(byte[] data, CancellationToken ct = default)Task