fix(console): disambiguate System.Console from TeamsISO.Console namespace
Some checks failed
CI / build-and-test (push) Has been cancelled
Some checks failed
CI / build-and-test (push) Has been cancelled
This commit is contained in:
parent
b2dafb7aed
commit
368920734d
1 changed files with 4 additions and 2 deletions
|
|
@ -10,6 +10,8 @@ using TeamsISO.Engine.Pipeline;
|
||||||
|
|
||||||
namespace TeamsISO.Console;
|
namespace TeamsISO.Console;
|
||||||
|
|
||||||
|
using SysConsole = System.Console;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Headless smoke runner. Wires up the engine end-to-end against the production NDI P/Invoke
|
/// Headless smoke runner. Wires up the engine end-to-end against the production NDI P/Invoke
|
||||||
/// interop and prints participant updates, alerts, and ISO state. Useful for first-validation
|
/// interop and prints participant updates, alerts, and ISO state. Useful for first-validation
|
||||||
|
|
@ -80,7 +82,7 @@ public static class Program
|
||||||
var sub2 = controller.Alerts.Subscribe(a => logger.LogWarning("ALERT: {Message}", a.Message));
|
var sub2 = controller.Alerts.Subscribe(a => logger.LogWarning("ALERT: {Message}", a.Message));
|
||||||
|
|
||||||
using var cts = new CancellationTokenSource();
|
using var cts = new CancellationTokenSource();
|
||||||
Console.CancelKeyPress += (_, e) => { e.Cancel = true; cts.Cancel(); };
|
SysConsole.CancelKeyPress += (_, e) => { e.Cancel = true; cts.Cancel(); };
|
||||||
|
|
||||||
await controller.StartAsync(cts.Token);
|
await controller.StartAsync(cts.Token);
|
||||||
logger.LogInformation("Engine started. Default framerate: {Fps:F2} fps. Press Ctrl+C or 'q' Enter to quit.",
|
logger.LogInformation("Engine started. Default framerate: {Fps:F2} fps. Press Ctrl+C or 'q' Enter to quit.",
|
||||||
|
|
@ -104,7 +106,7 @@ public static class Program
|
||||||
{
|
{
|
||||||
while (!cts.IsCancellationRequested)
|
while (!cts.IsCancellationRequested)
|
||||||
{
|
{
|
||||||
var line = Console.ReadLine();
|
var line = SysConsole.ReadLine();
|
||||||
if (line is null) return;
|
if (line is null) return;
|
||||||
if (line.Trim().Equals("q", StringComparison.OrdinalIgnoreCase))
|
if (line.Trim().Equals("q", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue