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