ZplChaosScript
public sealed class ZplChaosScriptA chaos script: printer options and faults as JSON, e.g. for zplcore serve --chaos script.json.
Constructors
| Signature | Description |
|---|---|
# ZplChaosScript() |
Properties
| Property | Type | Description |
|---|---|---|
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 Signature | Returns | Description |
|---|---|---|
# ApplyTo(ZplVirtualPrinter printer) | void | Applies the printer options of the script to printer and loads the faults. |
static # FromJson(string json) | ZplChaosScript | Parses the JSON (property names case-insensitive, fault kinds camelCase or PascalCase). Throws FormatException: Invalid script. |

