2 implementations of IDashboardRunSelection
Aspire.Dashboard (1)
ServiceClient\DashboardDataSource.cs (1)
28public sealed class DashboardDataSource : IDashboardRunSelection, IDisposable
Aspire.Dashboard.Components.Tests (1)
Shared\FluentUISetupHelpers.cs (1)
319internal sealed class TestDashboardRunSelection(IDashboardRunStore runStore) : IDashboardRunSelection
13 references to IDashboardRunSelection
Aspire.Dashboard (4)
Components\Layout\MainLayout.razor.cs (1)
98public required IDashboardRunSelection RunSelection { get; init; }
DashboardWebApplication.cs (1)
366builder.Services.AddScoped<IDashboardRunSelection>(services => services.GetRequiredService<DashboardDataSource>());
ServiceClient\DashboardDataSource.cs (2)
76DashboardRunDescriptor IDashboardRunSelection.SelectedRun => SelectedRun; 78void IDashboardRunSelection.SelectRun(string? runId) => SelectRun(runId);
Aspire.Dashboard.Components.Tests (9)
Layout\MainLayoutResourceTerminalsTests.cs (1)
68var selection = Assert.IsType<FluentUISetupHelpers.TestDashboardRunSelection>(Services.GetRequiredService<IDashboardRunSelection>());
Layout\MainLayoutTerminalTests.cs (1)
104var selection = Assert.IsType<FluentUISetupHelpers.TestDashboardRunSelection>(Services.GetRequiredService<IDashboardRunSelection>());
Layout\MainLayoutTests.cs (6)
451var runSelection = Assert.IsType<FluentUISetupHelpers.TestDashboardRunSelection>(Services.GetRequiredService<IDashboardRunSelection>()); 591var runSelection = Assert.IsType<FluentUISetupHelpers.TestDashboardRunSelection>(Services.GetRequiredService<IDashboardRunSelection>()); 704var runSelection = Assert.IsType<FluentUISetupHelpers.TestDashboardRunSelection>(Services.GetRequiredService<IDashboardRunSelection>()); 932var runSelection = Assert.IsType<FluentUISetupHelpers.TestDashboardRunSelection>(Services.GetRequiredService<IDashboardRunSelection>()); 1042var runSelection = Assert.IsType<FluentUISetupHelpers.TestDashboardRunSelection>(Services.GetRequiredService<IDashboardRunSelection>()); 1117var runSelection = Assert.IsType<FluentUISetupHelpers.TestDashboardRunSelection>(Services.GetRequiredService<IDashboardRunSelection>());
Shared\FluentUISetupHelpers.cs (1)
237context.Services.AddSingleton<IDashboardRunSelection, TestDashboardRunSelection>();