Merge pull request 'fix(s7-cli): restore OnDataChange CliFx-console rationale comment' (#443)
This commit was merged in pull request #443.
This commit is contained in:
@@ -50,6 +50,8 @@ public sealed class SubscribeCommand : S7CommandBase
|
|||||||
{
|
{
|
||||||
await driver.InitializeAsync("{}", ct);
|
await driver.InitializeAsync("{}", ct);
|
||||||
|
|
||||||
|
// Route every data-change event to the CliFx console (not System.Console — the
|
||||||
|
// analyzer flags it + IConsole is the testable abstraction).
|
||||||
driver.OnDataChange += (_, e) =>
|
driver.OnDataChange += (_, e) =>
|
||||||
{
|
{
|
||||||
var line = $"[{DateTime.UtcNow:HH:mm:ss.fff}] " +
|
var line = $"[{DateTime.UtcNow:HH:mm:ss.fff}] " +
|
||||||
|
|||||||
Reference in New Issue
Block a user