1 instantiation of CascadingParameterState
Microsoft.AspNetCore.Components (1)
CascadingParameterState.cs (1)
58
resultStates.Add(new
CascadingParameterState
(info, supplier));
21 references to CascadingParameterState
Microsoft.AspNetCore.Components (21)
CascadingParameterState.cs (6)
28
public static IReadOnlyList<
CascadingParameterState
> FindCascadingParameters(ComponentState componentState, out bool hasSingleDeliveryParameters)
42
return Array.Empty<
CascadingParameterState
>();
47
List<
CascadingParameterState
>? resultStates = null;
57
resultStates ??= new List<
CascadingParameterState
>(infos.Length - infoIndex);
74
return resultStates ?? (IReadOnlyList<
CascadingParameterState
>)Array.Empty<
CascadingParameterState
>();
ParameterView.cs (9)
22
private static readonly ParameterView _empty = new ParameterView(ParameterViewLifetime.Unbound, _emptyFrames, 0, Array.Empty<
CascadingParameterState
>());
27
private readonly IReadOnlyList<
CascadingParameterState
> _cascadingParameters;
30
: this(lifetime, frames, ownerIndex, Array.Empty<
CascadingParameterState
>())
34
private ParameterView(in ParameterViewLifetime lifetime, RenderTreeFrame[] frames, int ownerIndex, IReadOnlyList<
CascadingParameterState
> cascadingParameters)
131
internal ParameterView WithCascadingParameters(IReadOnlyList<
CascadingParameterState
> cascadingParameters)
337
internal Enumerator(RenderTreeFrame[] frames, int ownerIndex, IReadOnlyList<
CascadingParameterState
> cascadingParameters)
419
private readonly IReadOnlyList<
CascadingParameterState
> _cascadingParameters;
423
public CascadingParameterEnumerator(IReadOnlyList<
CascadingParameterState
> cascadingParameters)
439
var
state = _cascadingParameters[_currentIndex];
Rendering\ComponentState.cs (6)
20
private IReadOnlyList<
CascadingParameterState
> _cascadingParameters;
43
_cascadingParameters =
CascadingParameterState
.FindCascadingParameters(this, out _hasSingleDeliveryCascadingParameters);
193
List<
CascadingParameterState
>? remainingCascadingParameters = null;
194
foreach (
var
param in _cascadingParameters)
205
_cascadingParameters = (IReadOnlyList<
CascadingParameterState
>?)remainingCascadingParameters ?? Array.Empty<
CascadingParameterState
>();