1 instantiation of CascadingValue
Microsoft.AspNetCore.Components.Tests (1)
CascadingParameterStateTest.cs (1)
425var supplier = new CascadingValue<T>();
40 references to CascadingValue
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.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.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); 667builder.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);