style(worker-tests): field ordering in FakeRuntimeSession
ci / nightly-windev (push) Has been skipped
ci / windows-x86 (push) Successful in 1m31s
ci / java (push) Successful in 3m32s
ci / portable (push) Successful in 23m6s

refreshStaActivityOnCapture was declared between DispatchAsync and the property that
wraps it, rather than with the other instance fields. Moved up to the field block per the
member ordering in docs/style-guides/CSharpStyleGuide.md. Declaration move only — no
behavior, no other edits.
This commit is contained in:
Joseph Doherty
2026-08-18 07:24:39 -04:00
parent db7b1db947
commit 753d070535
@@ -42,6 +42,7 @@ internal sealed class FakeRuntimeSession : IWorkerRuntimeSession
// disposed SemaphoreSlim would turn that shutdown into an ObjectDisposedException.
private readonly SemaphoreSlim eventSignal = new(0, 1);
private TimeSpan? lastWaitForEventsTimeout;
private bool refreshStaActivityOnCapture;
private WorkerRuntimeHeartbeatSnapshot snapshot = new(
DateTimeOffset.UtcNow,
pendingCommandCount: 0,
@@ -138,8 +139,6 @@ internal sealed class FakeRuntimeSession : IWorkerRuntimeSession
});
}
private bool refreshStaActivityOnCapture;
/// <summary>
/// When set, <see cref="CaptureHeartbeat"/> stamps the snapshot's
/// <c>LastStaActivityUtc</c> with the capture time and leaves every other field as the last