1 instantiation of CascadingValue
Microsoft.AspNetCore.Components.Tests (1)
CascadingParameterStateTest.cs (1)
425var supplier = new CascadingValue<T>();
55 references to CascadingValue
Aspire.Dashboard (4)
Components_Resize_GridColumnManager_razor.g.cs (2)
191__builder.OpenComponent<global::Microsoft.AspNetCore.Components.CascadingValue<TValue>>(seq); 192__builder.AddComponentParameter(__seq0, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<TValue>.
Components_Routes_razor.g.cs (2)
342__builder.OpenComponent<global::Microsoft.AspNetCore.Components.CascadingValue<TValue>>(seq); 343__builder.AddComponentParameter(__seq0, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<TValue>.
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)
16/// a fixed <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 28/// a fixed <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 41/// a <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 57/// with the value type. This is equivalent to having a fixed <see cref="CascadingValue{TValue}"/> at 75/// <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 92/// 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.Authorization (3)
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.Authorization.Tests (7)
AuthorizeRouteViewTest.cs (5)
293component => Assert.IsType<CascadingValue<Task<AuthenticationState>>>(component), 320component => Assert.IsType<CascadingValue<Task<AuthenticationState>>>(component), 415builder.OpenComponent<CascadingValue<Task<AuthenticationState>>>(0); 416builder.AddComponentParameter(1, nameof(CascadingValue<object>.Value), _authenticationState); 417builder.AddComponentParameter(2, nameof(CascadingValue<object>.ChildContent), (RenderFragment)(builder =>
AuthorizeViewTest.cs (2)
533builder.OpenComponent<CascadingValue<Task<AuthenticationState>>>(0); 534builder.AddComponentParameter(1, nameof(CascadingValue<Task<AuthenticationState>>.Value), AuthenticationState);
Microsoft.AspNetCore.Components.QuickGrid (3)
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.Tests (14)
CascadingParameterStateTest.cs (2)
423static CascadingValue<T> CreateCascadingValueComponent<T>(T value, string name = null) 425var supplier = new CascadingValue<T>();
CascadingParameterTest.cs (12)
20builder.OpenComponent<CascadingValue<string>>(0); 58builder.OpenComponent<CascadingValue<string>>(0); 106builder.OpenComponent<CascadingValue<string>>(0); 151builder.OpenComponent<CascadingValue<string>>(0); 190builder.OpenComponent<CascadingValue<int>>(0); 196builder2.OpenComponent<CascadingValue<string>>(0); 256builder.OpenComponent<CascadingValue<string>>(0); 315builder.OpenComponent<CascadingValue<object>>(0); 337builder.OpenComponent<CascadingValue<object>>(0); 362builder.OpenComponent<CascadingValue<string>>(0); 525builder.OpenComponent<CascadingValue<MyParamType>>(0); 722builder.OpenComponent<CascadingValue<string>>(0);
Microsoft.AspNetCore.Components.Web (2)
Forms\EditForm.cs (1)
167builder.OpenComponent<CascadingValue<EditContext>>(7);
Forms\InputRadioGroup.cs (1)
75builder.OpenComponent<CascadingValue<InputRadioContext>>(0);
Microsoft.AspNetCore.Components.Web.Tests (4)
Forms\EditFormTest.cs (2)
124frame => AssertFrame.Component<CascadingValue<EditContext>>(frame, 4), 169frame => AssertFrame.Component<CascadingValue<EditContext>>(frame, 4),
Forms\InputRadioTest.cs (1)
144builder.OpenComponent<CascadingValue<EditContext>>(0);
Forms\TestInputHostComponent.cs (1)
24builder.OpenComponent<CascadingValue<EditContext>>(0);
Wasm.Performance.TestApp (5)
Shared_ComplexTable_TableComponent_razor.g.cs (2)
207__builder.OpenComponent<global::Microsoft.AspNetCore.Components.CascadingValue<TValue>>(seq); 208__builder.AddComponentParameter(__seq0, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<TValue>.
Shared_FastGrid_Grid_razor.g.cs (3)
240__builder.OpenComponent<global::Microsoft.AspNetCore.Components.CascadingValue<TValue>>(seq); 241__builder.AddComponentParameter(__seq0, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<TValue>. 250__builder.AddComponentParameter(__seq1, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<TValue>.