38 references to CascadingValue
Aspire.Dashboard.Components.Tests (15)
Controls\AspireMenuTests.cs (1)
183var menuHost = RenderComponent<CascadingValue<bool>>(builder =>
Controls\GenAIVisualizerDialogTests.cs (1)
400cut = RenderComponent<CascadingValue<IDialogInstance>>(builder =>
Controls\TextVisualizerDialogTests.cs (1)
362cut = RenderComponent<CascadingValue<IDialogInstance>>(builder =>
Dialogs\InteractionMessageBoxDialogTests.cs (1)
113cut = RenderComponent<CascadingValue<IDialogInstance>>(builder =>
Dialogs\InteractionsInputDialogTests.cs (1)
710cut = RenderComponent<CascadingValue<IDialogInstance>>(builder =>
Layout\MainLayoutTests.cs (1)
940var cut = RenderComponent<CascadingValue<ViewportInformation>>(builder =>
Pages\ConsoleLogsTests.cs (3)
1160builder.OpenComponent<CascadingValue<ViewportInformation>>(0); 1161builder.AddAttribute(1, nameof(CascadingValue<ViewportInformation>.Value), viewport); 1162builder.AddAttribute(2, nameof(CascadingValue<ViewportInformation>.ChildContent), (RenderFragment)(childBuilder =>
Pages\LoginTests.cs (3)
41builder.OpenComponent<CascadingValue<Task<AuthenticationState>>>(1); 42builder.AddAttribute(2, nameof(CascadingValue<Task<AuthenticationState>>.Value), tcs.Task); 43builder.AddAttribute(3, nameof(CascadingValue<Task<AuthenticationState>>.ChildContent), (RenderFragment)(childBuilder =>
Shared\FluentUISetupHelpers.cs (3)
388builder.OpenComponent<CascadingValue<ViewportInformation>>(2); 389builder.AddComponentParameter(3, nameof(CascadingValue<ViewportInformation>.Value), viewport); 390builder.AddComponentParameter(4, nameof(CascadingValue<ViewportInformation>.ChildContent), (RenderFragment)(contentBuilder =>
Microsoft.AspNetCore.Components (13)
CascadingParameterAttribute.cs (3)
8/// supplied by the closest ancestor <see cref="CascadingValue{T}"/> component that 16/// ancestor <see cref="CascadingValue{T}"/> that supplies a value with 20/// <see cref="CascadingValue{T}"/> that supplies a value with a compatible
CascadingValue.cs (3)
81throw new ArgumentException($"The parameter '{nameof(Name)}' for component '{nameof(CascadingValue<TValue>)}' does not allow null or empty values."); 90throw new ArgumentException($"The component '{nameof(CascadingValue<TValue>)}' does not accept a parameter with the name '{parameter.Name}'."); 154throw new InvalidOperationException($"Cannot subscribe to a {typeof(CascadingValue<>).Name} when {nameof(IsFixed)} is true.");
CascadingValueServiceCollectionExtensions.cs (6)
17/// a fixed <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 29/// a fixed <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 42/// a <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 76/// with the value type. This is equivalent to having a fixed <see cref="CascadingValue{TValue}"/> at 94/// <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 111/// with the value type. This is equivalent to having a fixed <see cref="CascadingValue{TValue}"/> at
ParameterValue.cs (1)
31/// was supplied by a <see cref="CascadingValue{T}"/>.
Microsoft.AspNetCore.Components.AI (2)
Components\AgentBoundary.cs (1)
58builder.OpenComponent<CascadingValue<AgentContext>>(0);
Components\MessageList.cs (1)
98builder.OpenComponent<CascadingValue<MessageListContext>>(0);
Microsoft.AspNetCore.Components.Authorization (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\CascadingAuthenticationState_razor.g.cs (3)
29__builder.OpenComponent<global::Microsoft.AspNetCore.Components.CascadingValue< 38__builder.AddComponentParameter(1, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<System.Threading.Tasks.Task<AuthenticationState>>. 55__builder.AddComponentParameter(2, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<System.Threading.Tasks.Task<AuthenticationState>>.
Microsoft.AspNetCore.Components.QuickGrid (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\QuickGrid_razor.g.cs (3)
53__builder.OpenComponent<global::Microsoft.AspNetCore.Components.CascadingValue< 62__builder.AddComponentParameter(1, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<InternalGridContext<TGridItem>>. 79__builder.AddComponentParameter(2, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<InternalGridContext<TGridItem>>.
Microsoft.AspNetCore.Components.Web (2)
Forms\EditForm.cs (1)
167builder.OpenComponent<CascadingValue<EditContext>>(7);
Forms\InputRadioGroup.cs (1)
75builder.OpenComponent<CascadingValue<InputRadioContext>>(0);