5 implementations of IDashboardClient
Aspire.Dashboard (1)
ServiceClient\DashboardClient.cs (1)
41
internal sealed class DashboardClient :
IDashboardClient
Aspire.Dashboard.Components.Tests (2)
Controls\ApplicationNameTests.cs (1)
74
private sealed class MockDashboardClient :
IDashboardClient
Shared\TestDashboardClient.cs (1)
12
public class TestDashboardClient :
IDashboardClient
Aspire.Dashboard.Tests (2)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
11
public sealed class MockDashboardClient :
IDashboardClient
ResourceOutgoingPeerResolverTests.cs (1)
222
private sealed class MockDashboardClient(Task<ResourceViewModelSubscription> subscribeResult) :
IDashboardClient
36 references to IDashboardClient
Aspire.Dashboard (15)
Components\Controls\ApplicationName.razor.cs (1)
24
public required
IDashboardClient
DashboardClient { get; init; }
Components\Interactions\InteractionsProvider.cs (1)
39
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\MainLayout.razor.cs (1)
57
public required
IDashboardClient
DashboardClient { get; init; }
Components\Layout\MobileNavMenu.razor.cs (1)
20
public required
IDashboardClient
DashboardClient { get; init; }
Components\Pages\ConsoleLogs.razor.cs (1)
48
public required
IDashboardClient
DashboardClient { get; init; }
Components\Pages\Resources.razor.cs (1)
44
public required
IDashboardClient
DashboardClient { get; init; }
DashboardWebApplication.cs (3)
234
builder.Services.TryAddSingleton<
IDashboardClient
, DashboardClient>();
376
var
client = context.RequestServices.GetRequiredService<
IDashboardClient
>();
Model\DashboardCommandExecutor.cs (1)
16
IDashboardClient
dashboardClient,
Model\ResourceOutgoingPeerResolver.cs (1)
21
public ResourceOutgoingPeerResolver(
IDashboardClient
resourceService)
ServiceClient\DashboardClient.cs (3)
36
/// <see cref="
IDashboardClient
.SubscribeResourcesAsync"/> and <see cref="
IDashboardClient
.SubscribeConsoleLogs"/>
37
/// will throw if <see cref="
IDashboardClient
.IsEnabled"/> is <see langword="false"/>. Callers should
ServiceClient\IDashboardClient.cs (1)
21
/// Users of <see cref="
IDashboardClient
"/> client should check <see cref="IsEnabled"/> before calling
Aspire.Dashboard.Components.Tests (9)
Controls\ApplicationNameTests.cs (3)
26
Services.AddSingleton<
IDashboardClient
, DashboardClient>();
43
Services.AddSingleton<
IDashboardClient
, DashboardClient>();
65
Services.AddSingleton<
IDashboardClient
, MockDashboardClient>();
Interactions\InteractionsProviderTests.cs (1)
290
Services.AddSingleton<
IDashboardClient
>(dashboardClient ?? new TestDashboardClient());
Layout\MainLayoutTests.cs (1)
134
Services.AddSingleton<
IDashboardClient
, TestDashboardClient>();
Pages\ConsoleLogsTests.cs (1)
728
Services.AddSingleton<
IDashboardClient
>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
65
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 (12)
Integration\DashboardClientAuthTests.cs (2)
134
var
iClient = (
IDashboardClient
)client;
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
59
builder.Services.AddSingleton<
IDashboardClient
, MockDashboardClient>();
Model\DashboardClientTests.cs (9)
45
IDashboardClient
client = instance;
75
IDashboardClient
client = instance;
100
await using
IDashboardClient
client = CreateResourceServiceClient();
113
IDashboardClient
client = instance;
131
IDashboardClient
client = instance;
156
IDashboardClient
client = instance;
185
IDashboardClient
client = instance;
210
await using
IDashboardClient
client = CreateResourceServiceClient();
222
IDashboardClient
client = instance;