From 637da6c0207c9b23e1fde5b3755a8fd0510bdc30 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 10 Sep 2026 15:30:40 -0400 Subject: [PATCH] docker(seed-handshake-demo): System.-qualify TimeSpan/StringComparison to match the sibling seed (#36 review) Claude-Session: https://claude.ai/code/session_01XPsuy2ZZ5Gbyfpt8PrK5BV --- docker/seed-handshake-demo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/seed-handshake-demo.sh b/docker/seed-handshake-demo.sh index de9ab35a..48b6529f 100755 --- a/docker/seed-handshake-demo.sh +++ b/docker/seed-handshake-demo.sh @@ -47,8 +47,8 @@ read -r -d '' HANDSHAKE_CODE <<'CS' || true // for Complete=true. Run this twice: the second run is the one the plain overload got wrong. var values = new Dictionary { ["Payload"] = 42.5 }; var hs = await Attributes.WriteBatchAndWaitAsync( - values, "Trigger", true, "Complete", true, TimeSpan.FromSeconds(20), - "Complete", false, TimeSpan.FromSeconds(10)); + values, "Trigger", true, "Complete", true, System.TimeSpan.FromSeconds(20), + "Complete", false, System.TimeSpan.FromSeconds(10)); Log.Info($"handshake matched={hs.Matched} phase={hs.Phase} timedOut={hs.TimedOut} resetFailed={hs.ResetFailed}"); return new { Matched = hs.Matched, Phase = hs.Phase.ToString(), TimedOut = hs.TimedOut, ResetFailed = hs.ResetFailed, Error = hs.ErrorMessage ?? "" }; CS @@ -63,7 +63,7 @@ read -r -d '' DEVICE_CODE <<'CS' || true // write re-triggers this script, which returns at the guard. var t = await Attributes.GetAsync("Trigger"); var ts = t?.ToString(); -if (!((t is bool b && b) || ts == "1" || string.Equals(ts, "true", StringComparison.OrdinalIgnoreCase))) return null; +if (!((t is bool b && b) || ts == "1" || string.Equals(ts, "true", System.StringComparison.OrdinalIgnoreCase))) return null; await Attributes.SetAsync("Complete", true); await Attributes.SetAsync("Trigger", false); return null;