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)
73
private sealed class MockDashboardClient :
IDashboardClient
Shared\TestDashboardClient.cs (1)
11
public class TestDashboardClient :
IDashboardClient
Aspire.Dashboard.Tests (1)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
10
public sealed class MockDashboardClient :
IDashboardClient
31 references to IDashboardClient
Aspire.Dashboard (14)
DashboardWebApplication.cs (3)
234
builder.Services.TryAddSingleton<
IDashboardClient
, DashboardClient>();
375
var
client = context.RequestServices.GetRequiredService<
IDashboardClient
>();
Model\DashboardCommandExecutor.cs (1)
16
IDashboardClient
dashboardClient,
Model\ResourceOutgoingPeerResolver.cs (1)
21
public ResourceOutgoingPeerResolver(
IDashboardClient
resourceService)
ResourceService\DashboardClient.cs (8)
33
/// <see cref="
IDashboardClient
.SubscribeResourcesAsync"/> and <see cref="
IDashboardClient
.SubscribeConsoleLogs"/>
34
/// will throw if <see cref="
IDashboardClient
.IsEnabled"/> is <see langword="false"/>. Callers should
400
Task
IDashboardClient
.WhenConnected
412
string
IDashboardClient
.ApplicationName
419
async Task<ResourceViewModelSubscription>
IDashboardClient
.SubscribeResourcesAsync(CancellationToken cancellationToken)
467
async IAsyncEnumerable<IReadOnlyList<ResourceLogLine>>
IDashboardClient
.SubscribeConsoleLogs(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken)
514
async IAsyncEnumerable<IReadOnlyList<ResourceLogLine>>
IDashboardClient
.GetConsoleLogs(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken)
ResourceService\IDashboardClient.cs (1)
19
/// Users of <see cref="
IDashboardClient
"/> client should check <see cref="IsEnabled"/> before calling
Aspire.Dashboard.Components.Tests (8)
Controls\ApplicationNameTests.cs (3)
25
Services.AddSingleton<
IDashboardClient
, DashboardClient>();
42
Services.AddSingleton<
IDashboardClient
, DashboardClient>();
64
Services.AddSingleton<
IDashboardClient
, MockDashboardClient>();
Layout\MainLayoutTests.cs (1)
134
Services.AddSingleton<
IDashboardClient
, TestDashboardClient>();
Pages\ConsoleLogsTests.cs (1)
569
Services.AddSingleton<
IDashboardClient
>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
66
Services.AddSingleton<
IDashboardClient
>(new TestDashboardClient());
Shared\ResourceSetupHelpers.cs (2)
62
public static void SetupResourcesPage(TestContext context, ViewportInformation viewport,
IDashboardClient
? dashboardClient = null)
116
context.Services.AddSingleton<
IDashboardClient
>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Aspire.Dashboard.Tests (9)
Integration\DashboardClientAuthTests.cs (2)
135
var
iClient = (
IDashboardClient
)client;
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
60
builder.Services.AddSingleton<
IDashboardClient
, MockDashboardClient>();
Model\DashboardClientTests.cs (5)
45
IDashboardClient
client = instance;
75
IDashboardClient
client = instance;
100
await using
IDashboardClient
client = CreateResourceServiceClient();
113
IDashboardClient
client = instance;
131
IDashboardClient
client = instance;
ResourceOutgoingPeerResolverTests.cs (1)
221
private sealed class MockDashboardClient(Task<ResourceViewModelSubscription> subscribeResult) :
IDashboardClient