4 implementations of IDashboardClient
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
38internal sealed class DashboardClient : IDashboardClient
Aspire.Dashboard.Components.Tests (2)
Controls\ApplicationNameTests.cs (1)
50private sealed class MockDashboardClient : IDashboardClient
Shared\TestDashboardClient.cs (1)
11public class TestDashboardClient : IDashboardClient
Aspire.Dashboard.Tests (1)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
16public sealed class MockDashboardClient : IDashboardClient
22 references to IDashboardClient
Aspire.Dashboard (9)
DashboardWebApplication.cs (1)
234builder.Services.TryAddScoped<IDashboardClient, DashboardClient>();
Model\ResourceOutgoingPeerResolver.cs (1)
20public ResourceOutgoingPeerResolver(IDashboardClient resourceService)
ResourceService\DashboardClient.cs (6)
33/// <see cref="IDashboardClient.SubscribeResourcesAsync"/> and <see cref="IDashboardClient.SubscribeConsoleLogs"/> 406Task IDashboardClient.WhenConnected 418string IDashboardClient.ApplicationName 425async Task<ResourceViewModelSubscription> IDashboardClient.SubscribeResourcesAsync(CancellationToken cancellationToken) 473async IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> IDashboardClient.SubscribeConsoleLogs(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken)
ResourceService\IDashboardClientStatus.cs (1)
12/// Users of <see cref="IDashboardClient"/> client should check <see cref="IsEnabled"/> before calling
Aspire.Dashboard.Components.Tests (4)
Controls\ApplicationNameTests.cs (2)
23Services.AddSingleton<IDashboardClient, DashboardClient>(); 41Services.AddSingleton<IDashboardClient, MockDashboardClient>();
Layout\MainLayoutTests.cs (1)
131Services.AddSingleton<IDashboardClient, TestDashboardClient>();
Pages\ConsoleLogsTests.cs (1)
173Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Aspire.Dashboard.Tests (9)
Integration\DashboardClientAuthTests.cs (2)
139var iClient = (IDashboardClient)client;
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
61builder.Services.AddScoped<IDashboardClient, MockDashboardClient>();
Model\DashboardClientTests.cs (5)
47IDashboardClient client = instance; 77IDashboardClient client = instance; 102await using IDashboardClient client = CreateResourceServiceClient(); 115IDashboardClient client = instance; 133IDashboardClient client = instance;
ResourceOutgoingPeerResolverTests.cs (1)
200private sealed class MockDashboardClient(Task<ResourceViewModelSubscription> subscribeResult) : IDashboardClient