7 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.Tests (4)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
13
public sealed class MockDashboardClient :
IDashboardClient
, IResourceRepositoryWriter
ResourceOutgoingPeerResolverTests.cs (1)
682
private sealed class MockDashboardClient(Task<ResourceViewModelSubscription> subscribeResult) :
IDashboardClient
Terminal\DefaultTerminalConnectionResolverTests.cs (1)
183
private sealed class DisabledDashboardClient :
IDashboardClient
tests\Shared\TestDashboardClient.cs (1)
15
public class TestDashboardClient :
IDashboardClient
90 references to IDashboardClient
Aspire.Dashboard (36)
Components\Controls\ApplicationName.razor.cs (1)
24
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\Dialogs\AIAgentsDialog.razor.cs (1)
26
public required
IDashboardClient
DashboardClient { get; init; }
Components\Dialogs\ManageDataDialog.razor.cs (1)
42
public required
IDashboardClient
DashboardClient { get; init; }
Components\Interactions\InteractionsProvider.cs (1)
70
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\MainLayout.razor.cs (1)
76
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\MobileNavMenu.razor.cs (1)
51
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\ResourceServiceConnectionProvider.cs (1)
17
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\ResourceTerminalsAvailabilityProvider.cs (1)
18
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\TerminalDock.razor.cs (1)
80
public required
IDashboardClient
DashboardClient { get; init; }
Components\Pages\ConsoleLogs.razor.cs (1)
77
public required
IDashboardClient
DashboardClient { get; init; }
Components\Pages\Resources.razor.cs (1)
50
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)
325
builder.Services.AddKeyedSingleton<
IDashboardClient
>(DashboardClient.LiveAppHostServiceKey,
334
builder.Services.TryAddScoped<
IDashboardClient
, SelectedDashboardClient>();
530
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)
17
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)
41
IDashboardClient
dashboardClient,
51
IDashboardClient
dashboardClient,
Aspire.Dashboard.Components.Tests (24)
Controls\ApplicationNameTests.cs (2)
58
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(applicationName: "<marquee>An HTML title!</marquee>"));
74
Services.AddSingleton<
IDashboardClient
, DashboardClient>();
Controls\ResourceDetailsTests.cs (1)
464
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isEnabled: true));
Dialogs\ManageDataDialogTests.cs (1)
283
Services.AddSingleton<
IDashboardClient
>(dashboardClient);
Interactions\InteractionsProviderTests.cs (2)
737
Services.AddSingleton<
IDashboardClient
>(selectedDashboardClient ?? new TestDashboardClient());
738
Services.AddKeyedSingleton<
IDashboardClient
>(DashboardClient.LiveAppHostServiceKey, dashboardClient ?? new TestDashboardClient());
Layout\DesktopNavMenuTests.cs (1)
30
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isEnabled: enabled));
Layout\MainLayoutTests.cs (2)
1254
Services.AddSingleton<
IDashboardClient
>(dashboardClient);
1255
Services.AddKeyedSingleton<
IDashboardClient
>(DashboardClient.LiveAppHostServiceKey, dashboardClient);
Layout\MobileNavMenuTests.cs (1)
135
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isEnabled: true));
Layout\ResourceServiceConnectionProviderTests.cs (1)
19
Services.AddSingleton<
IDashboardClient
>(dashboardClient);
Layout\ResourceTerminalsAvailabilityProviderTests.cs (2)
22
Services.AddSingleton<
IDashboardClient
>(client);
33
Services.AddSingleton<
IDashboardClient
>(client);
Pages\ConsoleLogsTests.cs (1)
1115
Services.AddSingleton<
IDashboardClient
>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
94
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient());
Pages\MetricsTests.cs (1)
46
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient(isReadOnly: dashboardClientIsReadOnly));
Shared\FluentUISetupHelpers.cs (3)
234
context.Services.AddSingleton<
IDashboardClient
, TestDashboardClient>();
235
context.Services.AddSingleton<IResourceRepository>(services => services.GetRequiredService<
IDashboardClient
>());
333
IDashboardClient
dashboardClient) : IRepositoryFactory
Shared\ResourceSetupHelpers.cs (2)
49
IDashboardClient
? dashboardClient = null,
72
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)
58
context.Services.AddSingleton<
IDashboardClient
>(client);
Shared\TerminalsSetupHelpers.cs (1)
27
context.Services.AddSingleton<
IDashboardClient
>(client);
Aspire.Dashboard.Tests (30)
Integration\DashboardClientAuthTests.cs (2)
140
var
iClient = (
IDashboardClient
)client;
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
89
builder.Services.AddSingleton<
IDashboardClient
>(dashboardClient);
Integration\Playwright\TerminalDockTests.cs (1)
486
services.AddSingleton<
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)
220
IDashboardClient
selectedClient = new SelectedDashboardClient(currentClient, dataSource);
1481
IDashboardClient
selectedClient = new SelectedDashboardClient(currentClient, dataSource);
Model\ResourceMenuBuilderTests.cs (1)
44
IDashboardClient
? dashboardClient = null)
Shared\TerminalTestHost.cs (1)
48
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,