8 instantiations of ParameterView
Microsoft.AspNetCore.Components (8)
ParameterView.cs (3)
22private static readonly ParameterView _empty = new ParameterView(ParameterViewLifetime.Unbound, _emptyFrames, 0, Array.Empty<CascadingParameterState>()); 128return new ParameterView(Lifetime, cloneBuffer, _ownerIndex); 132=> new ParameterView(_lifetime, _frames, _ownerIndex, cascadingParameters);
ParameterViewBuilder.cs (1)
46return new ParameterView(ParameterViewLifetime.Unbound, _frames, 0);
Rendering\ComponentState.cs (1)
234? new ParameterView(lifetime, _latestDirectParametersSnapshot.Buffer, 0)
RenderTree\RenderTreeDiffBuilder.cs (3)
684var oldParameters = new ParameterView(ParameterViewLifetime.Unbound, oldTree, oldFrameIndex); 686var newParameters = new ParameterView(newParametersLifetime, newTree, newFrameIndex); 1007var initialParameters = new ParameterView(initialParametersLifetime, frames, frameIndex);
129 references to ParameterView
Microsoft.AspNetCore.Components (52)
CascadingValue.cs (1)
51public Task SetParametersAsync(ParameterView parameters)
ComponentBase.cs (4)
249/// Parameters are passed when <see cref="SetParametersAsync(ParameterView)"/> is called. It is not required that 253/// The default implementation of <see cref="SetParametersAsync(ParameterView)"/> will set the value of each property 255/// a corresponding value in the <see cref="ParameterView" />. Parameters that do not have a corresponding value 259public virtual Task SetParametersAsync(ParameterView parameters)
DynamicComponent.cs (1)
63public Task SetParametersAsync(ParameterView parameters)
IComponent.cs (3)
23/// The <see cref="SetParametersAsync(ParameterView)"/> method should be passed the entire set of parameter values each 24/// time <see cref="SetParametersAsync(ParameterView)"/> is called. It not required that the caller supply a parameter 27Task SetParametersAsync(ParameterView parameters);
LayoutComponentBase.cs (1)
29public override Task SetParametersAsync(ParameterView parameters) => base.SetParametersAsync(parameters);
LayoutView.cs (1)
42public Task SetParametersAsync(ParameterView parameters)
ParameterView.cs (16)
22private static readonly ParameterView _empty = new ParameterView(ParameterViewLifetime.Unbound, _emptyFrames, 0, Array.Empty<CascadingParameterState>()); 43/// Gets an empty <see cref="ParameterView"/>. 45public static ParameterView Empty => _empty; 50/// Returns an enumerator that iterates through the <see cref="ParameterView"/>. 103/// Returns a dictionary populated with the contents of the <see cref="ParameterView"/>. 105/// <returns>A dictionary populated with the contents of the <see cref="ParameterView"/>.</returns> 116internal ParameterView Clone() 131internal ParameterView WithCascadingParameters(IReadOnlyList<CascadingParameterState> cascadingParameters) 151internal bool DefinitelyEquals(ParameterView oldParameters) 214internal bool HasRemovedDirectParameters(in ParameterView oldParameters) 252static Span<RenderTreeFrame> GetDirectParameterFrames(in ParameterView parameterView) 299/// Creates a new <see cref="ParameterView"/> from the given <see cref="IDictionary{TKey, TValue}"/>. 302/// <returns>A <see cref="ParameterView"/>.</returns> 303public static ParameterView FromDictionary(IDictionary<string, object?> parameters) 316/// match the corresponding entry in the <see cref="ParameterView"/>. 327/// An enumerator that iterates through a <see cref="ParameterView"/>.
ParameterViewBuilder.cs (4)
10/// Provides a mechanism to build a <see cref="ParameterView" /> with an unbound lifetime. 41/// Supplies a completed <see cref="ParameterView" />. 43/// <returns>The <see cref="ParameterView" />.</returns> 44public ParameterView ToParameterView()
Reflection\ComponentProperties.cs (1)
33public static void SetProperties(in ParameterView parameters, object target)
Rendering\ComponentState.cs (5)
167internal void SetDirectParameters(ParameterView parameters) 233var directParams = _latestDirectParametersSnapshot != null 235: ParameterView.Empty; 236var allParams = directParams.WithCascadingParameters(_cascadingParameters!); 243private void SupplyCombinedParameters(ParameterView directAndCascadingParameters)
Rendering\ParameterViewLifetime.cs (2)
25throw new InvalidOperationException($"The {nameof(ParameterView)} instance can no longer be read because it has expired. {nameof(ParameterView)} can only be read synchronously and must not be stored for later use.");
RenderTree\Renderer.cs (4)
46private Dictionary<int, ParameterView>? _rootComponentsLatestParameters; 281return RenderRootComponentAsync(componentId, ParameterView.Empty); 294/// <param name="initialParameters">The <see cref="ParameterView"/> with the initial or updated parameters to use for rendering.</param> 299protected internal async Task RenderRootComponentAsync(int componentId, ParameterView initialParameters)
RenderTree\RenderTreeDiffBuilder.cs (3)
684var oldParameters = new ParameterView(ParameterViewLifetime.Unbound, oldTree, oldFrameIndex); 686var newParameters = new ParameterView(newParametersLifetime, newTree, newFrameIndex); 1007var initialParameters = new ParameterView(initialParametersLifetime, frames, frameIndex);
RouteView.cs (1)
54public Task SetParametersAsync(ParameterView parameters)
Routing\Router.cs (1)
121public async Task SetParametersAsync(ParameterView parameters)
Sections\SectionContent.cs (2)
43Task IComponent.SetParametersAsync(ParameterView parameters) 85private void SetParameterValues(in ParameterView parameters)
Sections\SectionOutlet.cs (2)
39Task IComponent.SetParametersAsync(ParameterView parameters) 137public Task SetParametersAsync(ParameterView parameters)
Microsoft.AspNetCore.Components.Endpoints (22)
Assets\ImportMap.cs (1)
42Task IComponent.SetParametersAsync(ParameterView parameters)
Assets\ResourcePreloader.cs (1)
25Task IComponent.SetParametersAsync(ParameterView parameters)
BrowserConfiguration\ConfigureBrowser.cs (1)
35Task IComponent.SetParametersAsync(ParameterView parameters)
DependencyInjection\IComponentPrerenderer.cs (2)
28ParameterView parameters); 41/// Gets a <see cref="Dispatcher"/> that should be used for calls to <see cref="PrerenderComponentAsync(HttpContext, Type, IComponentRenderMode, ParameterView)"/>.
DependencyInjection\WebAssemblyComponentSerializer.cs (1)
11public static void SerializeInvocation(ref ComponentMarker marker, Type type, ParameterView parameters)
RazorComponentEndpointHost.cs (1)
34public Task SetParametersAsync(ParameterView parameters)
RazorComponentEndpointInvoker.cs (1)
105ParameterView.Empty,
Rendering\EndpointHtmlRenderer.Prerendering.cs (3)
91ParameterView parameters) 100ParameterView parameters, 142ParameterView parameters,
Rendering\SSRRenderModeBoundary.cs (5)
107public Task SetParametersAsync(ParameterView parameters) 208var serializableParameters = _latestParameters is null 209? ParameterView.Empty 238private ParameterView BuildSerializableParameterView( 266return ParameterView.FromDictionary(dict);
Results\RazorComponentResultExecutor.cs (2)
57var hostParameters = ParameterView.FromDictionary(new Dictionary<string, object?>
Routing\BasePath.cs (1)
23Task IComponent.SetParametersAsync(ParameterView parameters)
src\aspnetcore\src\Shared\Components\ComponentParameter.cs (1)
14public static (IList<ComponentParameter> parameterDefinitions, IList<object?> parameterValues) FromParameterView(ParameterView parameters)
src\aspnetcore\src\Shared\Components\ServerComponentSerializer.cs (2)
23ParameterView parameters, 34ParameterView parameters,
Microsoft.AspNetCore.Components.Server (16)
Circuits\ComponentDescriptor.cs (2)
10public ParameterView Parameters { get; set; } 14public void Deconstruct(out Type componentType, out ParameterView parameters, out int sequence) =>
Circuits\ComponentParameterDeserializer.cs (2)
22public bool TryDeserializeParameters(IList<ComponentParameter> parametersDefinitions, IList<object> parameterValues, out ParameterView parameters) 96parameters = ParameterView.FromDictionary(parametersDictionary);
Circuits\RemoteRenderer.cs (1)
70public Task AddComponentAsync(Type componentType, ParameterView parameters, string domElementSelector)
Circuits\ServerComponentDeserializer.cs (3)
190if (!TryDeserializeComponentTypeAndParameters(serverComponent, out var componentType, out var parameters)) 206private bool TryDeserializeComponentTypeAndParameters(ServerComponent serverComponent, [NotNullWhen(true)] out Type? componentType, out ParameterView parameters) 279if (!TryDeserializeComponentTypeAndParameters(serverComponent, out var componentType, out var parameters))
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (2)
88internal IEnumerable<(int id, ComponentMarkerKey key, (Type componentType, ParameterView parameters))> GetRootComponents() 162out ParameterView parameters)
src\aspnetcore\src\Components\Shared\src\WebRootComponentParameters.cs (3)
9ParameterView parameterView, 13public static readonly WebRootComponentParameters Empty = new(ParameterView.Empty, [], []); 19public ParameterView Parameters => parameterView;
src\aspnetcore\src\Shared\Components\ComponentParameter.cs (1)
14public static (IList<ComponentParameter> parameterDefinitions, IList<object?> parameterValues) FromParameterView(ParameterView parameters)
src\aspnetcore\src\Shared\Components\ServerComponentSerializer.cs (2)
23ParameterView parameters, 34ParameterView parameters,
Microsoft.AspNetCore.Components.Web (18)
Forms\AntiforgeryToken.cs (1)
26Task IComponent.SetParametersAsync(ParameterView parameters)
Forms\DisplayName.cs (1)
35Task IComponent.SetParametersAsync(ParameterView parameters)
Forms\InputBase.cs (2)
249public override Task SetParametersAsync(ParameterView parameters) 296return base.SetParametersAsync(ParameterView.Empty);
Forms\Label.cs (1)
64Task IComponent.SetParametersAsync(ParameterView parameters)
Forms\Mapping\FormMappingScope.cs (1)
36Task IComponent.SetParametersAsync(ParameterView parameters)
HtmlRendering\HtmlRenderer.cs (8)
52=> _passiveHtmlRenderer.BeginRenderingComponent(typeof(TComponent), ParameterView.Empty); 64ParameterView parameters) where TComponent : IComponent 77=> _passiveHtmlRenderer.BeginRenderingComponent(componentType, ParameterView.Empty); 90ParameterView parameters) 100=> RenderComponentAsync<TComponent>(ParameterView.Empty); 110=> RenderComponentAsync(componentType, ParameterView.Empty); 120ParameterView parameters) where TComponent : IComponent 132ParameterView parameters)
HtmlRendering\StaticHtmlRenderer.cs (2)
53ParameterView initialParameters) 67ParameterView initialParameters)
Media\MediaComponentBase.cs (1)
106Task IComponent.SetParametersAsync(ParameterView parameters)
Routing\NavigationLock.cs (1)
47Task IComponent.SetParametersAsync(ParameterView parameters)
Microsoft.AspNetCore.Components.WebView.Maui (5)
RootComponent.cs (3)
49 var parameterView = Parameters == null ? ParameterView.Empty : ParameterView.FromDictionary(Parameters);
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (2)
65 manager.AddRootComponentAsync(typeof(StaticContentChangeNotifier), "body::after", ParameterView.Empty); 183 public Task SetParametersAsync(ParameterView parameters)
Microsoft.AspNetCore.Components.WebView.WindowsForms (5)
RootComponent.cs (3)
52 var parameterView = Parameters == null ? ParameterView.Empty : ParameterView.FromDictionary(Parameters);
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (2)
65 manager.AddRootComponentAsync(typeof(StaticContentChangeNotifier), "body::after", ParameterView.Empty); 183 public Task SetParametersAsync(ParameterView parameters)
Microsoft.AspNetCore.Components.WebView.Wpf (5)
RootComponent.cs (3)
48 var parameterView = Parameters == null ? ParameterView.Empty : ParameterView.FromDictionary(Parameters);
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (2)
65 manager.AddRootComponentAsync(typeof(StaticContentChangeNotifier), "body::after", ParameterView.Empty); 183 public Task SetParametersAsync(ParameterView parameters)
Microsoft.AspNetCore.Mvc.TagHelpers (3)
ComponentTagHelper.cs (3)
98var parameters = _parameters is null || _parameters.Count == 0 ? ParameterView.Empty : ParameterView.FromDictionary(_parameters);
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Rendering\HtmlHelperComponentExtensions.cs (3)
58var parameterView = parameters is null ? 59ParameterView.Empty : 60ParameterView.FromDictionary(HtmlHelper.ObjectToDictionary(parameters));