zplCore.comzplCore.com

ZplChaosScript

public sealed class ZplChaosScript

A chaos script: printer options and faults as JSON, e.g. for zplcore serve --chaos script.json.

Constructors

SignatureDescription
# ZplChaosScript()

Properties

PropertyTypeDescription
ConcurrentConnections { get; init; }bool?printer.concurrentConnections (ZplVirtualPrinter.ConcurrentConnections).
Cutter { get; init; }bool?printer.cutter (null = keep the render settings).
Faults { get; init; }IReadOnlyList<ZplFaultRule>
HonorPauseCount { get; init; }bool?
LabelPrintTime { get; init; }TimeSpan?
MemoryBytes { get; init; }long?
ReceiveBufferBytes { get; init; }int?
Seed { get; init; }int?
SilentHostStatusOnError { get; init; }bool?

Methods

Method SignatureReturnsDescription
# ApplyTo(ZplVirtualPrinter printer)voidApplies the printer options of the script to printer and loads the faults.
static # FromJson(string json)ZplChaosScriptParses the JSON (property names case-insensitive, fault kinds camelCase or PascalCase). Throws FormatException: Invalid script.