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)
402
var run = new
TrayWatchStream
(monitor, new TestProcessIdentityProvider(), time, logger).RunAsync((json, _) =>
520
var run = new
TrayWatchStream
(monitor, new TestProcessIdentityProvider(), new FakeTimeProvider(), logger).RunAsync((json, _) =>
587
var run = new
TrayWatchStream
(monitor, new TestProcessIdentityProvider(), time, logger).RunAsync((json, _) =>
706
var result = await new
TrayWatchStream
(monitor, new TestProcessIdentityProvider(), new FakeTimeProvider(), logger).RunAsync((json, _) =>
829
var run = new
TrayWatchStream
(monitor, new TestProcessIdentityProvider(), new FakeTimeProvider(), logger)
1054
=>
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 });
412
time.Advance(
TrayWatchStream
.DashboardLookupTimeout);
464
time.Advance(
TrayWatchStream
.DashboardLookupTimeout);
469
time.Advance(
TrayWatchStream
.DashboardRetryInterval);
577
if (count %
TrayWatchStream
.MaximumConcurrentDashboardLookups == 0)
593
for (var second = 0; second <
TrayWatchStream
.DashboardSnapshotTimeout.TotalSeconds; second++)
595
Assert.Equal((second + 1) *
TrayWatchStream
.MaximumConcurrentDashboardLookups, await batches.Reader.ReadAsync().AsTask().DefaultTimeout());
604
Assert.InRange(calls,
TrayWatchStream
.MaximumConcurrentDashboardLookups, TrayCliProtocol.MaximumAppHosts - 1);
607
Assert.True(
TrayWatchStream
.DashboardSnapshotTimeout < TrayCliProtocol.LivenessTimeout);
622
var blockedCount = saturateSlots ?
TrayWatchStream
.MaximumConcurrentDashboardLookups : 1;
649
time.Advance(
TrayWatchStream
.DashboardLookupTimeout);
1053
private static
TrayWatchStream
CreateStream(TestAuxiliaryBackchannelMonitor monitor, TimeProvider time, TestProcessIdentityProvider? identity = null)