refactor(ablegacy): confine libplctag to its adapter behind AbStatus/AbTransportException

This commit is contained in:
Joseph Doherty
2026-10-07 15:39:01 -04:00
parent a0897fda96
commit 1affb4b613
11 changed files with 216 additions and 115 deletions
@@ -112,7 +112,7 @@ public sealed class AbLegacyArrayTests
var (drv, factory) = NewDriver(
new AbLegacyTagDefinition("Levels", "ab://10.0.0.5/1,0", "N7:0", AbLegacyDataType.Int, ArrayLength: 5));
await drv.InitializeAsync("{}", CancellationToken.None);
factory.Customise = p => new FakeAbLegacyTag(p) { Status = (int)libplctag.Status.ErrorTimeout };
factory.Customise = p => new FakeAbLegacyTag(p) { Status = (int)ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.AbStatus.Timeout };
var snapshots = await drv.ReadAsync(["Levels"], CancellationToken.None);