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