3 instantiations of DimensionManager
Aspire.Dashboard.Components.Tests (3)
GridColumnManagerTests.cs (3)
17
var dimensionManager = new
DimensionManager
();
45
var dimensionManager = new
DimensionManager
();
81
var dimensionManager = new
DimensionManager
();
39 references to DimensionManager
Aspire.Dashboard (15)
Components\Controls\LogViewer.razor.cs (3)
26
public required DimensionManager
DimensionManager
{ get; init; }
62
DimensionManager
.OnViewportInformationChanged += OnBrowserResize;
86
DimensionManager
.OnViewportInformationChanged -= OnBrowserResize;
Components\Resize\BrowserDimensionWatcher.cs (5)
21
public required DimensionManager
DimensionManager
{ get; init; }
28
DimensionManager
.InvokeOnViewportSizeChanged(viewportSize)
31
DimensionManager
.InvokeOnViewportInformationChanged(ViewportInformation);
44
DimensionManager
.InvokeOnViewportSizeChanged(viewportSize);
57
DimensionManager
.InvokeOnViewportInformationChanged(newViewportInformation);
Components\Resize\GridColumnManager.razor.cs (6)
17
public required DimensionManager
DimensionManager
{ get; init; }
25
public ViewportInformation ViewportInformation => _gridViewportInformation ??
DimensionManager
.ViewportInformation;
29
DimensionManager
.OnViewportSizeChanged += OnViewportSizeChanged;
62
SetViewportInformation(
DimensionManager
.ViewportSize);
103
var viewportInformation = _gridViewportInformation ??
DimensionManager
.ViewportInformation;
112
DimensionManager
.OnViewportSizeChanged -= OnViewportSizeChanged;
DashboardWebApplication.cs (1)
261
builder.Services.AddScoped<
DimensionManager
>();
Aspire.Dashboard.Components.Tests (24)
GridColumnManagerTests.cs (6)
17
var
dimensionManager = new DimensionManager();
19
Services.AddSingleton<
DimensionManager
>(dimensionManager);
45
var
dimensionManager = new DimensionManager();
47
Services.AddSingleton<
DimensionManager
>(dimensionManager);
81
var
dimensionManager = new DimensionManager();
84
Services.AddSingleton<
DimensionManager
>(dimensionManager);
Pages\ConsoleLogsTests.cs (5)
50
var
dimensionManager = Services.GetRequiredService<
DimensionManager
>();
110
var
dimensionManager = Services.GetRequiredService<
DimensionManager
>();
167
Services.AddSingleton<
DimensionManager
>();
Pages\StructuredLogsTests.cs (7)
40
var
dimensionManager = Services.GetRequiredService<
DimensionManager
>();
80
var
dimensionManager = Services.GetRequiredService<
DimensionManager
>();
118
var
dimensionManager = Services.GetRequiredService<
DimensionManager
>();
179
Services.AddSingleton<
DimensionManager
>();
Pages\TraceDetailsTests.cs (5)
41
var
dimensionManager = Services.GetRequiredService<
DimensionManager
>();
92
var
dimensionManager = Services.GetRequiredService<
DimensionManager
>();
171
Services.AddSingleton<
DimensionManager
>();
Shared\MetricsSetupHelpers.cs (1)
78
context.Services.AddSingleton<
DimensionManager
>();