2 writes to Value
Microsoft.AspNetCore.Components (2)
CascadingValue.cs (2)
60Value = default; 69Value = (TValue)parameter.Value;
44 references to Value
Aspire.Dashboard.Components.Tests (35)
Controls\AspireMenuTests.cs (2)
318builder.Add(p => p.Value, false); 331builder.Add(p => p.Value, false);
Controls\GenAIVisualizerDialogTests.cs (1)
402builder.Add(cascadingValue => cascadingValue.Value, testDialogService!.LastInstance!);
Controls\TextVisualizerDialogTests.cs (1)
672builder.Add(p => p.Value, testDialogService!.LastInstance!);
Dialogs\InteractionMessageBoxDialogTests.cs (1)
136builder.Add(component => component.Value, testDialogService!.LastInstance!);
Dialogs\InteractionsTerminalDialogTests.cs (2)
117.Add(p => p.Value, host.Instance.Value)
Layout\MainLayoutTests.cs (2)
1025builder.Add(p => p.Value, new ViewportInformation(IsDesktop: initialIsDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false)); 1049parameters.Add(p => p.Value, new ViewportInformation(IsDesktop: closingIsDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false));
Layout\ResourcesLayoutActivityTests.cs (3)
70builder.Add(p => p.Value, desktop).AddChildContent<ResourcesLayout>()); 75cut.Render(builder => builder.Add(p => p.Value, mobile).AddChildContent<ResourcesLayout>()); 78cut.Render(builder => builder.Add(p => p.Value, desktop).AddChildContent<ResourcesLayout>());
Layout\ResourcesLayoutHomeTests.cs (10)
156var cut = Render<CascadingValue<ViewportInformation>>(p => p.Add(v => v.Value, desktop).AddChildContent<ResourcesLayout>()); 160cut.Render(p => p.Add(v => v.Value, narrow).AddChildContent<ResourcesLayout>()); 169cut.Render(p => p.Add(v => v.Value, desktop).AddChildContent<ResourcesLayout>()); 186var cut = Render<CascadingValue<ViewportInformation>>(p => p.Add(v => v.Value, desktop).AddChildContent<ResourcesLayout>()); 192cut.Render(p => p.Add(v => v.Value, narrow).AddChildContent<ResourcesLayout>()); 201cut.Render(p => p.Add(v => v.Value, narrow).AddChildContent<ResourcesLayout>()); 210cut.Render(p => p.Add(v => v.Value, narrow).AddChildContent<ResourcesLayout>()); 498var cut = Render<CascadingValue<ViewportInformation>>(p => p.Add(v => v.Value, desktop).AddChildContent<ResourcesLayout>()); 502cut.Render(p => p.Add(v => v.Value, mobile).AddChildContent<ResourcesLayout>()); 506cut.Render(p => p.Add(v => v.Value, desktop).AddChildContent<ResourcesLayout>());
Layout\ResourcesLayoutTests.cs (6)
807builder.Add(p => p.Value, desktop).AddChildContent<ResourcesLayout>()); 813cut.Render(builder => builder.Add(p => p.Value, mobile).AddChildContent<ResourcesLayout>()); 823cut.Render(builder => builder.Add(p => p.Value, desktop).AddChildContent<ResourcesLayout>()); 3248builder.Add(p => p.Value, desktop).AddChildContent<ResourcesLayout>()); 3251cut.Render(builder => builder.Add(p => p.Value, mobile).AddChildContent<ResourcesLayout>()); 3257cut.Render(builder => builder.Add(p => p.Value, desktop).AddChildContent<ResourcesLayout>());
Pages\ConsoleLogsTests.cs (1)
1201builder.AddAttribute(1, nameof(CascadingValue<ViewportInformation>.Value), viewport);
Pages\LoginTests.cs (1)
42builder.AddAttribute(2, nameof(CascadingValue<Task<AuthenticationState>>.Value), tcs.Task);
Pages\TerminalsTests.cs (3)
378.Add(p => p.Value, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false)) 450.Add(p => p.Value, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false)) 477.Add(p => p.Value, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false))
Shared\FluentUISetupHelpers.cs (1)
437builder.AddComponentParameter(3, nameof(CascadingValue<ViewportInformation>.Value), viewport);
Shared\InteractionsSetupHelpers.cs (1)
33builder.Add(p => p.Value, testDialogService!.LastInstance!);
Microsoft.AspNetCore.Components (7)
CascadingValue.cs (7)
37/// If true, indicates that <see cref="Value"/> will not change. This is a 40/// <see cref="Value"/> during the component's lifetime. 58var previousValue = Value; 67if (parameter.Name.Equals(nameof(Value), StringComparison.OrdinalIgnoreCase)) 105throw new ArgumentException($"Missing required parameter '{nameof(Value)}' for component '{GetType().Name}'."); 121if (_subscribers != null && ChangeDetection.MayHaveChanged(previousValue, Value)) 145return Value;
Microsoft.AspNetCore.Components.Authorization (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\CascadingAuthenticationState_razor.g.cs (1)
41Value
Microsoft.AspNetCore.Components.QuickGrid (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\QuickGrid_razor.g.cs (1)
82Value