7 implementations of IDashboardClient
Aspire.Dashboard (2)
ServiceClient\DashboardClient.cs (1)
44internal sealed class DashboardClient : IDashboardClient
ServiceClient\SelectedDashboardClient.cs (1)
9internal sealed class SelectedDashboardClient(DashboardClient currentClient, DashboardDataSource dataSource) : IDashboardClient
Aspire.Dashboard.Components.Tests (1)
tests\Shared\TestDashboardClient.cs (1)
15public class TestDashboardClient : IDashboardClient
Aspire.Dashboard.Tests (4)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
11public sealed class MockDashboardClient : IDashboardClient
ResourceOutgoingPeerResolverTests.cs (1)
682private sealed class MockDashboardClient(Task<ResourceViewModelSubscription> subscribeResult) : IDashboardClient
Terminal\DefaultTerminalConnectionResolverTests.cs (1)
140private sealed class DisabledDashboardClient : IDashboardClient
tests\Shared\TestDashboardClient.cs (1)
15public class TestDashboardClient : IDashboardClient
70 references to IDashboardClient
Aspire.Dashboard (28)
Components\Controls\ApplicationName.razor.cs (1)
24public required IDashboardClient DashboardClient { get; init; }
Components\Controls\PropertyValues\ResourceNameButtonValue.razor.cs (1)
28public required IDashboardClient DashboardClient { get; init; }
Components\Controls\PropertyValues\ResourceStateValue.razor.cs (1)
25public required IDashboardClient DashboardClient { get; init; }
Components\Controls\ResourceActions.razor.cs (1)
36public required IDashboardClient DashboardClient { get; init; }
Components\Dialogs\AIAgentsDialog.razor.cs (1)
27public required IDashboardClient DashboardClient { get; init; }
Components\Dialogs\ManageDataDialog.razor.cs (1)
41public required IDashboardClient DashboardClient { get; init; }
Components\Interactions\InteractionsProvider.cs (1)
69public required IDashboardClient DashboardClient { get; init; }
Components\Layout\MainLayout.razor.cs (1)
68public required IDashboardClient DashboardClient { get; init; }
Components\Layout\MobileNavMenu.razor.cs (1)
27public required IDashboardClient DashboardClient { get; init; }
Components\Layout\ResourceServiceConnectionProvider.cs (1)
17public required IDashboardClient DashboardClient { get; init; }
Components\Pages\ConsoleLogs.razor.cs (1)
76public required IDashboardClient DashboardClient { get; init; }
Components\Pages\Resources.razor.cs (1)
46public required IDashboardClient DashboardClient { get; init; }
DashboardWebApplication.cs (2)
288builder.Services.AddKeyedSingleton<IDashboardClient>(DashboardClient.LiveAppHostServiceKey, 294builder.Services.AddScoped<IDashboardClient, SelectedDashboardClient>();
Model\ConsoleLogsFetcher.cs (2)
13private readonly IDashboardClient _dashboardClient; 25public ConsoleLogsFetcher(DashboardDataSource dataSource, IDashboardClient dashboardClient, ConsoleLogsManager consoleLogsManager)
Model\DashboardCommandExecutor.cs (1)
17IDashboardClient dashboardClient,
Model\Interaction\InteractionsInputsDialogViewModel.cs (1)
19public required IDashboardClient DashboardClient { get; init; }
Model\ResourceMenuBuilder.cs (2)
36private readonly IDashboardClient _dashboardClient; 48IDashboardClient dashboardClient)
Model\ResourceOutgoingPeerResolver.cs (1)
45if (resourceRepository is IDashboardClient { IsEnabled: false })
Model\TelemetryExportService.cs (2)
27private readonly IDashboardClient _dashboardClient; 35public 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)
22/// Users of <see cref="IDashboardClient"/> client should check <see cref="IsEnabled"/> before calling
Terminal\DefaultTerminalConnectionResolver.cs (3)
11/// snapshot stream from <see cref="IDashboardClient"/>. The dashboard receives 34private readonly IDashboardClient _client; 36public DefaultTerminalConnectionResolver(IDashboardClient client)
Aspire.Dashboard.Components.Tests (18)
Controls\ApplicationNameTests.cs (2)
58Services.AddSingleton<IDashboardClient>(new TestDashboardClient(applicationName: "<marquee>An HTML title!</marquee>")); 74Services.AddSingleton<IDashboardClient, DashboardClient>();
Controls\ResourceDetailsTests.cs (1)
464Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isEnabled: true));
Dialogs\ManageDataDialogTests.cs (1)
280Services.AddSingleton<IDashboardClient>(dashboardClient);
Interactions\InteractionsProviderTests.cs (2)
690Services.AddSingleton<IDashboardClient>(selectedDashboardClient ?? new TestDashboardClient()); 691Services.AddKeyedSingleton<IDashboardClient>(DashboardClient.LiveAppHostServiceKey, dashboardClient ?? new TestDashboardClient());
Layout\MainLayoutTests.cs (2)
1080Services.AddSingleton<IDashboardClient>(dashboardClient); 1081Services.AddKeyedSingleton<IDashboardClient>(DashboardClient.LiveAppHostServiceKey, dashboardClient);
Layout\MobileNavMenuTests.cs (1)
101Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isEnabled: true));
Pages\ConsoleLogsTests.cs (1)
1134Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
58Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
Pages\MetricsTests.cs (1)
46Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isReadOnly: dashboardClientIsReadOnly));
Shared\FluentUISetupHelpers.cs (3)
223context.Services.AddSingleton<IDashboardClient, TestDashboardClient>(); 224context.Services.AddSingleton<IResourceRepository>(services => services.GetRequiredService<IDashboardClient>()); 320IDashboardClient dashboardClient) : IRepositoryFactory
Shared\ResourceSetupHelpers.cs (2)
46public static void SetupResourcesPage(TestContext context, ViewportInformation viewport, IDashboardClient? dashboardClient = null, ILocalStorage? localStorage = null) 66context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
23context.Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
Aspire.Dashboard.Tests (24)
Integration\DashboardClientAuthTests.cs (2)
140var iClient = (IDashboardClient)client;
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
62builder.Services.AddSingleton<IDashboardClient>(new MockDashboardClient(Resources));
Model\DashboardClientTests.cs (19)
38IDashboardClient client = instance; 68IDashboardClient client = instance; 93await using IDashboardClient client = CreateResourceServiceClient(); 106IDashboardClient client = instance; 124IDashboardClient client = instance; 182IDashboardClient client = instance; 211IDashboardClient client = instance; 236await using IDashboardClient client = CreateResourceServiceClient(); 248IDashboardClient client = instance; 277IDashboardClient client = instance; 343IDashboardClient client = instance; 359IDashboardClient client = instance; 374IDashboardClient client = instance; 393IDashboardClient client = instance; 404IDashboardClient client = instance; 425IDashboardClient client = instance; 459IDashboardClient client = instance; 486IDashboardClient client = instance; 538IDashboardClient client = instance;
Model\DashboardDataSourceTests.cs (1)
1135IDashboardClient selectedClient = new SelectedDashboardClient(currentClient, dataSource);
Model\ResourceMenuBuilderTests.cs (1)
44IDashboardClient? dashboardClient = null)