9 implementations of IDashboardClient
Aspire.Dashboard (2)
ServiceClient\DashboardClient.cs (1)
44
internal sealed class DashboardClient :
IDashboardClient
ServiceClient\SelectedDashboardClient.cs (1)
10
internal sealed class SelectedDashboardClient(DashboardClient currentClient, DashboardDataSource dataSource) :
IDashboardClient
Aspire.Dashboard.Components.Tests (1)
tests\Shared\TestDashboardClient.cs (1)
15
public class TestDashboardClient :
IDashboardClient
Aspire.Dashboard.Playwright.Tests (2)
tests\Aspire.Dashboard.Tests\Shared\MockDashboardClient.cs (1)
14
public sealed class MockDashboardClient :
IDashboardClient
, IResourceRepositoryWriter
tests\Shared\TestDashboardClient.cs (1)
15
public class TestDashboardClient :
IDashboardClient
Aspire.Dashboard.Tests (4)
ResourceOutgoingPeerResolverTests.cs (1)
682
private sealed class MockDashboardClient(Task<ResourceViewModelSubscription> subscribeResult) :
IDashboardClient
Shared\MockDashboardClient.cs (1)
14
public sealed class MockDashboardClient :
IDashboardClient
, IResourceRepositoryWriter
Terminal\DefaultTerminalConnectionResolverTests.cs (1)
183
private sealed class DisabledDashboardClient :
IDashboardClient
tests\Shared\TestDashboardClient.cs (1)
15
public class TestDashboardClient :
IDashboardClient
119 references to IDashboardClient
Aspire.Dashboard (53)
Components\Controls\ApplicationName.razor.cs (1)
24
public required
IDashboardClient
DashboardClient { get; init; }
Components\Controls\ApplicationSummary.razor.cs (1)
73
public required
IDashboardClient
DashboardClient { get; init; }
Components\Controls\MissingParametersPanel.razor.cs (1)
42
public required
IDashboardClient
DashboardClient { get; init; }
Components\Controls\ParameterOverview.razor.cs (1)
29
public required
IDashboardClient
DashboardClient { get; init; }
Components\Controls\PropertyValues\ResourceNameButtonValue.razor.cs (1)
28
public required
IDashboardClient
DashboardClient { get; init; }
Components\Controls\PropertyValues\ResourceStateValue.razor.cs (1)
25
public required
IDashboardClient
DashboardClient { get; init; }
Components\Controls\ResourceActions.razor.cs (1)
26
public required
IDashboardClient
DashboardClient { get; init; }
Components\Controls\TerminalDisconnectedBanner.razor.cs (1)
54
public required
IDashboardClient
DashboardClient { get; init; }
Components\Dialogs\AIAgentsHelp.razor.cs (1)
29
public required
IDashboardClient
DashboardClient { get; init; }
Components\Dialogs\HelpDialog.razor.cs (1)
56
public required
IDashboardClient
DashboardClient { get; init; }
Components\Dialogs\ManageDataDialog.razor.cs (1)
42
public required
IDashboardClient
DashboardClient { get; init; }
Components\Dialogs\SettingsDialog.razor.cs (1)
62
public required
IDashboardClient
DashboardClient { get; init; }
Components\Interactions\InteractionsProvider.cs (1)
71
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\MainLayout.razor.cs (1)
80
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\MobileNavMenu.razor.cs (1)
54
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\NavigationAvailabilityProvider.cs (1)
26
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\ResourceServiceConnectionProvider.cs (1)
17
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\ResourcesLayout.razor.cs (1)
140
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\TerminalDock.razor.cs (1)
81
public required
IDashboardClient
DashboardClient { get; init; }
Components\Legacy\Dialogs\LegacyAIAgentsDialog.razor.cs (1)
30
public required
IDashboardClient
DashboardClient { get; init; }
Components\Legacy\Layout\LegacyMainLayout.razor.cs (1)
79
public required
IDashboardClient
DashboardClient { get; init; }
Components\Legacy\Layout\LegacyMobileNavMenu.razor.cs (1)
51
public required
IDashboardClient
DashboardClient { get; init; }
Components\Legacy\Layout\ResourceTerminalsAvailabilityProvider.cs (1)
18
public required
IDashboardClient
DashboardClient { get; init; }
Components\Legacy\Pages\ConsoleLogs.razor.cs (1)
77
public required
IDashboardClient
DashboardClient { get; init; }
Components\Legacy\Pages\Resources.razor.cs (1)
51
public required
IDashboardClient
DashboardClient { get; init; }
Components\Legacy\Pages\Terminals.razor.cs (1)
37
public required
IDashboardClient
DashboardClient { get; init; }
Components\Legacy\Pages\TerminalWindow.razor.cs (1)
77
public required
IDashboardClient
DashboardClient { get; init; }
Components\Pages\ConsoleLogs.razor.cs (1)
77
public required
IDashboardClient
DashboardClient { get; init; }
Components\Pages\Home.razor.cs (1)
28
public required
IDashboardClient
DashboardClient { get; init; }
Components\Pages\ResourceOverview.razor.cs (1)
75
public required
IDashboardClient
DashboardClient { get; init; }
Components\Pages\Resources.razor.cs (1)
53
public required
IDashboardClient
DashboardClient { get; init; }
Components\Pages\Terminals.razor.cs (1)
37
public required
IDashboardClient
DashboardClient { get; init; }
Components\Pages\TerminalWindow.razor.cs (1)
77
public required
IDashboardClient
DashboardClient { get; init; }
DashboardWebApplication.cs (4)
371
builder.Services.AddKeyedSingleton<
IDashboardClient
>(DashboardClient.LiveAppHostServiceKey,
380
builder.Services.TryAddScoped<
IDashboardClient
, SelectedDashboardClient>();
557
var
client = context.RequestServices.GetRequiredService<
IDashboardClient
>();
Model\ConsoleLogsFetcher.cs (2)
13
private readonly
IDashboardClient
_dashboardClient;
25
public ConsoleLogsFetcher(DashboardDataSource dataSource,
IDashboardClient
dashboardClient, ConsoleLogsManager consoleLogsManager)
Model\DashboardCommandExecutor.cs (1)
19
IDashboardClient
dashboardClient,
Model\Interaction\InteractionsInputsDialogViewModel.cs (1)
19
public required
IDashboardClient
DashboardClient { get; init; }
Model\ResourceMenuBuilder.cs (2)
38
private readonly
IDashboardClient
_dashboardClient;
51
IDashboardClient
dashboardClient)
Model\ResourceOutgoingPeerResolver.cs (1)
45
if (resourceRepository is
IDashboardClient
{ IsEnabled: false })
Model\TelemetryExportService.cs (2)
27
private readonly
IDashboardClient
_dashboardClient;
35
public TelemetryExportService(DashboardDataSource dataSource, ConsoleLogsFetcher consoleLogsFetcher,
IDashboardClient
dashboardClient)
ServiceClient\DashboardClient.cs (1)
40
/// will throw if <see cref="
IDashboardClient
.IsEnabled"/> is <see langword="false"/>. Callers should
ServiceClient\IDashboardClient.cs (1)
32
/// Users of <see cref="
IDashboardClient
"/> client should check <see cref="IsEnabled"/> before calling
Terminal\DefaultTerminalConnectionResolver.cs (3)
11
/// snapshots in <see cref="
IDashboardClient
"/>. The dashboard receives
28
private readonly
IDashboardClient
_client;
30
public DefaultTerminalConnectionResolver(
IDashboardClient
client)
Terminal\TerminalWebSocketProxy.cs (2)
45
IDashboardClient
dashboardClient,
55
IDashboardClient
dashboardClient,
Aspire.Dashboard.Components.Tests (35)
Controls\ApplicationNameTests.cs (2)
58
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(applicationName: "<marquee>An HTML title!</marquee>"));
74
Services.AddSingleton<
IDashboardClient
, DashboardClient>();
Controls\MissingParametersPanelTests.cs (2)
93
DashboardClient = Services.GetRequiredService<
IDashboardClient
>()
130
DashboardClient = Services.GetRequiredService<
IDashboardClient
>()
Controls\ResourceDetailsTests.cs (1)
496
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isEnabled: true));
Controls\TerminalViewTests.cs (1)
628
Services.AddSingleton<
IDashboardClient
>(client);
Dialogs\HelpDialogTests.cs (1)
150
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isEnabled: isDashboardClientEnabled));
Dialogs\ManageDataDialogTests.cs (1)
332
Services.AddSingleton<
IDashboardClient
>(dashboardClient);
Interactions\InteractionsProviderTests.cs (2)
901
Services.AddSingleton<
IDashboardClient
>(selectedDashboardClient ?? new TestDashboardClient());
902
Services.AddKeyedSingleton<
IDashboardClient
>(DashboardClient.LiveAppHostServiceKey, dashboardClient ?? new TestDashboardClient());
Layout\DesktopNavMenuTests.cs (2)
30
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isEnabled: enabled));
110
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isEnabled: true));
Layout\LegacyNavMenuTests.cs (1)
90
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isEnabled: true));
Layout\MainLayoutTests.cs (2)
1097
Services.AddSingleton<
IDashboardClient
>(dashboardClient);
1098
Services.AddKeyedSingleton<
IDashboardClient
>(DashboardClient.LiveAppHostServiceKey, dashboardClient);
Layout\MobileNavMenuTests.cs (1)
142
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isEnabled: hasResourceService));
Layout\NavigationAvailabilityProviderTests.cs (3)
29
Services.AddSingleton<
IDashboardClient
>(client);
40
Services.AddSingleton<
IDashboardClient
>(client);
55
Services.AddSingleton<
IDashboardClient
>(client);
Layout\ResourceServiceConnectionProviderTests.cs (1)
19
Services.AddSingleton<
IDashboardClient
>(dashboardClient);
Layout\ResourcesLayoutTests.cs (1)
2372
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isEnabled: resourceServiceEnabled));
Model\DashboardCommandExecutorTests.cs (1)
74
Services.AddSingleton<
IDashboardClient
>(dashboardClient);
Pages\ConsoleLogsTests.cs (1)
1162
Services.AddSingleton<
IDashboardClient
>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
94
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient());
Pages\MetricsTests.cs (1)
348
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isReadOnly: dashboardClientIsReadOnly));
Shared\FluentUISetupHelpers.cs (3)
256
context.Services.AddSingleton<
IDashboardClient
, TestDashboardClient>();
257
context.Services.AddSingleton<IResourceRepository>(services => services.GetRequiredService<
IDashboardClient
>());
376
IDashboardClient
dashboardClient) : IRepositoryFactory
Shared\ResourceSetupHelpers.cs (4)
35
public static void SetupResourceOverview(BunitContext context, ViewportInformation viewport,
IDashboardClient
dashboardClient,
45
public static void SetupResourcesLayout(BunitContext context, ViewportInformation viewport,
IDashboardClient
dashboardClient,
103
IDashboardClient
? dashboardClient = null,
127
context.Services.AddSingleton<
IDashboardClient
>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
23
context.Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient());
Shared\TerminalSetupHelpers.cs (1)
64
context.Services.AddSingleton<
IDashboardClient
>(client);
Shared\TerminalsSetupHelpers.cs (1)
36
context.Services.AddSingleton<
IDashboardClient
>(client);
Aspire.Dashboard.Playwright.Tests (3)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
96
builder.Services.AddSingleton<
IDashboardClient
>(dashboardClient);
Integration\Playwright\ResourcePaneResponsiveTests.cs (1)
2695
services.AddSingleton<
IDashboardClient
>(client);
Integration\Playwright\TerminalDockTests.cs (1)
513
services.AddSingleton<
IDashboardClient
>(Client);
Aspire.Dashboard.Tests (28)
Integration\DashboardClientAuthTests.cs (2)
140
var
iClient = (
IDashboardClient
)client;
Model\DashboardClientTests.cs (20)
215
private static Task<IHost> BuildTerminalTestHostAsync(
IDashboardClient
dashboardClient, TerminalViewSessionRegistry sessions)
339
IDashboardClient
client = instance;
369
IDashboardClient
client = instance;
394
await using
IDashboardClient
client = CreateResourceServiceClient();
407
IDashboardClient
client = instance;
425
IDashboardClient
client = instance;
668
IDashboardClient
client = instance;
697
IDashboardClient
client = instance;
722
await using
IDashboardClient
client = CreateResourceServiceClient();
734
IDashboardClient
client = instance;
778
IDashboardClient
client = instance;
844
IDashboardClient
client = instance;
860
IDashboardClient
client = instance;
875
IDashboardClient
client = instance;
894
IDashboardClient
client = instance;
905
IDashboardClient
client = instance;
926
IDashboardClient
client = instance;
961
IDashboardClient
client = instance;
988
IDashboardClient
client = instance;
1040
IDashboardClient
client = instance;
Model\DashboardDataSourceTests.cs (2)
264
IDashboardClient
selectedClient = new SelectedDashboardClient(currentClient, dataSource);
1528
IDashboardClient
selectedClient = new SelectedDashboardClient(currentClient, dataSource);
Model\ResourceMenuBuilderTests.cs (1)
44
IDashboardClient
? dashboardClient = null)
Shared\TerminalTestHost.cs (1)
45
builder.Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(attachTerminal: AttachTerminalAsync));
Terminal\TerminalWebSocketProxyEndpointTests.cs (2)
178
services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(attachTerminal: async (terminalId, cancellationToken) =>
230
IDashboardClient
dashboardClient,