42 instantiations of DashboardUrlsState
Aspire.Cli.Tests (42)
Backchannel\TrayWatchStreamTests.cs (3)
338
return Task.FromResult<DashboardUrlsState?>(
new
() { BaseUrlWithLoginToken = "http://localhost:1234" });
393
return Task.FromResult<DashboardUrlsState?>(
new
() { BaseUrlWithLoginToken = "http://localhost:1234/login?t=abc" });
580
healthy.DashboardUrlsState =
new
() { BaseUrlWithLoginToken = "http://localhost:1234" };
Commands\AppHostLauncherTests.cs (14)
130
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
179
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
212
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
241
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
276
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
307
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
335
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
364
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
393
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
442
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
545
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
581
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
824
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
857
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "https://localhost:18888/login?t=test" },
Commands\DescribeCommandTests.cs (2)
703
], dashboardUrlsState: new
DashboardUrlsState
773
], dashboardUrlsState: new
DashboardUrlsState
Commands\PsCommandTests.cs (4)
135
DashboardUrlsState = new
DashboardUrlsState
324
DashboardUrlsState = new
DashboardUrlsState
369
DashboardUrlsState = new
DashboardUrlsState
926
return Task.FromResult(new
DashboardUrlsState
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1098
Task.FromResult(new
DashboardUrlsState
Commands\RunCommandTests.cs (13)
999
return new
DashboardUrlsState
{ DashboardHealthy = true };
1907
return new
DashboardUrlsState
{ DashboardHealthy = true };
1964
GetDashboardUrlsAsyncCallback = _ => Task.FromResult(new
DashboardUrlsState
{ DashboardHealthy = true })
2286
return new
DashboardUrlsState
{ DashboardHealthy = true };
2472
return new
DashboardUrlsState
{ DashboardHealthy = true };
2672
GetDashboardUrlsAsyncCallback = _ => Task.FromResult(new
DashboardUrlsState
2895
GetDashboardUrlsAsyncCallback = _ => Task.FromResult(new
DashboardUrlsState
3161
return Task.FromResult(new
DashboardUrlsState
3266
appHostBackchannel.GetDashboardUrlsAsyncCallback = (ct) => Task.FromResult(new
DashboardUrlsState
3336
appHostBackchannel.GetDashboardUrlsAsyncCallback = (ct) => Task.FromResult(new
DashboardUrlsState
3407
appHostBackchannel.GetDashboardUrlsAsyncCallback = (ct) => Task.FromResult(new
DashboardUrlsState
5239
appHostBackchannel.GetDashboardUrlsAsyncCallback = (ct) => Task.FromResult(new
DashboardUrlsState
5313
appHostBackchannel.GetDashboardUrlsAsyncCallback = (ct) => Task.FromResult(new
DashboardUrlsState
Mcp\ExcludeFromMcpTests.cs (2)
135
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "http://localhost:18888" }
177
DashboardUrlsState = new
DashboardUrlsState
{ BaseUrlWithLoginToken = "http://localhost:18888" }
Mcp\ListResourcesToolTests.cs (2)
1006
connection.DashboardUrlsState = new
DashboardUrlsState
1206
DashboardUrlsState = new
DashboardUrlsState
TestServices\TestAppHostCliBackchannel.cs (1)
62
new
DashboardUrlsState
54 references to DashboardUrlsState
aspire (25)
Backchannel\AppHostAuxiliaryBackchannel.cs (4)
336
public async Task<
DashboardUrlsState
?> GetDashboardUrlsAsync(CancellationToken cancellationToken = default)
347
var
dashboardUrls = await rpc.InvokeWithProfilingAsync<
DashboardUrlsState
?>(
614
var
urlsState = await GetDashboardUrlsAsync(cancellationToken).ConfigureAwait(false);
Backchannel\AppHostCliBackchannel.cs (4)
19
Task<
DashboardUrlsState
> GetDashboardUrlsAsync(CancellationToken cancellationToken);
110
public async Task<
DashboardUrlsState
> GetDashboardUrlsAsync(CancellationToken cancellationToken)
120
var
state = await rpc.InvokeWithProfilingAsync<
DashboardUrlsState
>(
Backchannel\BackchannelJsonSerializerContext.cs (1)
26
[JsonSerializable(typeof(
DashboardUrlsState
))]
Backchannel\ExtensionBackchannel.cs (2)
34
Task DisplayDashboardUrlsAsync(
DashboardUrlsState
dashboardUrls, CancellationToken cancellationToken);
509
public async Task DisplayDashboardUrlsAsync(
DashboardUrlsState
dashboardUrls, CancellationToken cancellationToken)
Backchannel\IAppHostAuxiliaryBackchannel.cs (1)
77
Task<
DashboardUrlsState
?> GetDashboardUrlsAsync(CancellationToken cancellationToken = default);
Backchannel\TrayWatchStream.cs (2)
342
Task<
DashboardUrlsState
?>? pendingLookup = null;
347
var
urls = await pendingLookup.WaitAsync(lookupCancellation.Token).ConfigureAwait(false);
Commands\AppHostLauncher.cs (3)
427
private record LaunchResult(IProcessExecution? ChildProcess, IAppHostAuxiliaryBackchannel? Backchannel,
DashboardUrlsState
? DashboardUrls, bool ChildExitedEarly, int ChildExitCode, DateTimeOffset? ChildStartedAt = null);
495
DashboardUrlsState
? dashboardUrls = null;
961
var
dashboardUrls = result.DashboardUrls;
Commands\PsCommand.cs (1)
424
var
dashboardUrls = await connection.GetDashboardUrlsAsync(cancellationToken).ConfigureAwait(false);
Commands\RunCommand.cs (3)
484
var
dashboardUrls = startup.DashboardUrls;
1020
DashboardUrlsState
dashboardUrls;
1045
DashboardUrlsState
DashboardUrls,
Interaction\ExtensionInteractionService.cs (2)
26
void DisplayDashboardUrls(
DashboardUrlsState
dashboardUrls);
543
public void DisplayDashboardUrls(
DashboardUrlsState
dashboardUrls)
Mcp\Tools\ListResourcesTool.cs (1)
179
var
dashboardUrls = await dashboardUrlsTask.ConfigureAwait(false);
Telemetry\ProfilingTelemetry.cs (1)
957
public void SetAppHostDashboardUrls(
DashboardUrlsState
? dashboardUrls)
Aspire.Cli.Tests (29)
Backchannel\TrayWatchStreamTests.cs (10)
325
var pending = new TaskCompletionSource<
DashboardUrlsState
?>(TaskCreationOptions.RunContinuationsAsynchronously);
338
return Task.FromResult<
DashboardUrlsState
?>(new() { BaseUrlWithLoginToken = "http://localhost:1234" });
381
var pending = new TaskCompletionSource<
DashboardUrlsState
?>(TaskCreationOptions.RunContinuationsAsynchronously);
393
return Task.FromResult<
DashboardUrlsState
?>(new() { BaseUrlWithLoginToken = "http://localhost:1234/login?t=abc" });
439
var pending = new TaskCompletionSource<
DashboardUrlsState
?>(TaskCreationOptions.RunContinuationsAsynchronously);
559
var pending = new TaskCompletionSource<
DashboardUrlsState
?>(TaskCreationOptions.RunContinuationsAsynchronously);
604
return Task.FromResult<
DashboardUrlsState
?>(null);
643
connection.GetDashboardUrlsHandler = _ => Task.FromException<
DashboardUrlsState
?>(failure);
683
return Task.FromResult<
DashboardUrlsState
?>(null);
882
return Task.FromResult<
DashboardUrlsState
?>(null);
Commands\DescribeCommandTests.cs (1)
1088
DashboardUrlsState
? dashboardUrlsState = null,
Commands\PsCommandTests.cs (2)
589
GetDashboardUrlsHandler = _ => Task.FromException<
DashboardUrlsState
?>(rpcException)
922
public Task<
DashboardUrlsState
> GetDashboardUrlsAsync(CancellationToken cancellationToken = default)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1097
public Task<
DashboardUrlsState
> GetDashboardUrlsAsync(CancellationToken cancellationToken) =>
Commands\RunCommandTests.cs (4)
2025
return Task.FromCanceled<
DashboardUrlsState
>(useRunCancellationToken ? runCancellationToken : ct);
2095
? Task.FromCanceled<
DashboardUrlsState
>(unrelatedCts.Token)
2096
: Task.FromException<
DashboardUrlsState
>(new InvalidOperationException("Dashboard RPC failed."));
2174
return Task.FromException<
DashboardUrlsState
>(extensionCancelled
Commands\TerminalCommandTests.cs (1)
839
public Task<global::Aspire.Cli.Backchannel.
DashboardUrlsState
?> GetDashboardUrlsAsync(CancellationToken cancellationToken = default)
Projects\ExtensionGuestLauncherTests.cs (1)
216
public void DisplayDashboardUrls(
DashboardUrlsState
dashboardUrls) => throw new NotImplementedException();
TestServices\TestAppHostAuxiliaryBackchannel.cs (3)
52
public
DashboardUrlsState
? DashboardUrlsState { get; set; }
53
public Func<CancellationToken, Task<
DashboardUrlsState
?>>? GetDashboardUrlsHandler { get; set; }
129
public Task<
DashboardUrlsState
?> GetDashboardUrlsAsync(CancellationToken cancellationToken = default)
TestServices\TestAppHostCliBackchannel.cs (2)
16
public Func<CancellationToken, Task<
DashboardUrlsState
>>? GetDashboardUrlsAsyncCallback { get; set; }
56
public Task<
DashboardUrlsState
> GetDashboardUrlsAsync(CancellationToken cancellationToken)
TestServices\TestExtensionBackchannel.cs (2)
44
public Func<
DashboardUrlsState
, Task>? DisplayDashboardUrlsAsyncCallback { get; set; }
162
public Task DisplayDashboardUrlsAsync(
DashboardUrlsState
dashboardUrls, CancellationToken cancellationToken)
TestServices\TestExtensionInteractionService.cs (2)
26
public Action<
DashboardUrlsState
>? DisplayDashboardUrlsCallback { get; set; }
160
public void DisplayDashboardUrls(
DashboardUrlsState
dashboardUrls)