7 instantiations of TrayWatchStream
aspire (1)
Commands\PsCommand.cs (1)
149
var stream = new
TrayWatchStream
(_backchannelMonitor, _processIdentityProvider, _timeProvider, _logger);
Aspire.Cli.Tests (6)
Backchannel\TrayWatchStreamTests.cs (6)
344
var run = new
TrayWatchStream
(monitor, new TestProcessIdentityProvider(), time, logger).RunAsync((json, _) =>
462
var run = new
TrayWatchStream
(monitor, new TestProcessIdentityProvider(), new FakeTimeProvider(), logger).RunAsync((json, _) =>
529
var run = new
TrayWatchStream
(monitor, new TestProcessIdentityProvider(), time, logger).RunAsync((json, _) =>
648
var result = await new
TrayWatchStream
(monitor, new TestProcessIdentityProvider(), new FakeTimeProvider(), logger).RunAsync((json, _) =>
771
var run = new
TrayWatchStream
(monitor, new TestProcessIdentityProvider(), new FakeTimeProvider(), logger)
996
=>
new
(monitor, identity ?? new TestProcessIdentityProvider(), time, NullLogger.Instance);
14 references to TrayWatchStream
aspire (1)
Commands\PsCommand.cs (1)
149
var
stream = new TrayWatchStream(_backchannelMonitor, _processIdentityProvider, _timeProvider, _logger);
Aspire.Cli.Tests (13)
Backchannel\TrayWatchStreamTests.cs (13)
29
var
stream = CreateStream(monitor, time);
118
var
stream = CreateStream(monitor, new FakeTimeProvider(), new TestProcessIdentityProvider { GetStartTime = pid => pid == 10 ? 1000 : null });
354
time.Advance(
TrayWatchStream
.DashboardLookupTimeout);
406
time.Advance(
TrayWatchStream
.DashboardLookupTimeout);
411
time.Advance(
TrayWatchStream
.DashboardRetryInterval);
519
if (count %
TrayWatchStream
.MaximumConcurrentDashboardLookups == 0)
535
for (var second = 0; second <
TrayWatchStream
.DashboardSnapshotTimeout.TotalSeconds; second++)
537
Assert.Equal((second + 1) *
TrayWatchStream
.MaximumConcurrentDashboardLookups, await batches.Reader.ReadAsync().AsTask().DefaultTimeout());
546
Assert.InRange(calls,
TrayWatchStream
.MaximumConcurrentDashboardLookups, TrayCliProtocol.MaximumAppHosts - 1);
549
Assert.True(
TrayWatchStream
.DashboardSnapshotTimeout < TrayCliProtocol.LivenessTimeout);
564
var blockedCount = saturateSlots ?
TrayWatchStream
.MaximumConcurrentDashboardLookups : 1;
591
time.Advance(
TrayWatchStream
.DashboardLookupTimeout);
995
private static
TrayWatchStream
CreateStream(TestAuxiliaryBackchannelMonitor monitor, TimeProvider time, TestProcessIdentityProvider? identity = null)