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)
221? 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); 967var initialParameters = new ParameterView(initialParametersLifetime, frames, frameIndex);
460 references to ParameterView
BasicTestApp (8)
ServerReliability\ThrowingAttachComponent.cs (1)
15public Task SetParametersAsync(ParameterView parameters)
ServerReliability\ThrowingConstructorComponent.cs (1)
20public Task SetParametersAsync(ParameterView parameters)
ServerReliability\ThrowingDisposeComponent.cs (1)
23public Task SetParametersAsync(ParameterView parameters)
ServerReliability\ThrowingOnAfterRenderAsyncComponent.cs (1)
24public Task SetParametersAsync(ParameterView parameters)
ServerReliability\ThrowingOnAfterRenderSyncComponent.cs (1)
23public Task SetParametersAsync(ParameterView parameters)
ServerReliability\ThrowingRenderComponent.cs (1)
18public Task SetParametersAsync(ParameterView parameters)
ServerReliability\ThrowingSetParametersAsyncComponent.cs (1)
14public async Task SetParametersAsync(ParameterView parameters)
ServerReliability\ThrowingSetParametersSyncComponent.cs (1)
14public Task SetParametersAsync(ParameterView parameters)
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)
24public static void SetProperties(in ParameterView parameters, object target)
Rendering\ComponentState.cs (5)
154internal void SetDirectParameters(ParameterView parameters) 220var directParams = _latestDirectParametersSnapshot != null 222: ParameterView.Empty; 223var allParams = directParams.WithCascadingParameters(_cascadingParameters!); 230private 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)
36private Dictionary<int, ParameterView>? _rootComponentsLatestParameters; 246return RenderRootComponentAsync(componentId, ParameterView.Empty); 259/// <param name="initialParameters">The <see cref="ParameterView"/> with the initial or updated parameters to use for rendering.</param> 264protected 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); 967var initialParameters = new ParameterView(initialParametersLifetime, frames, frameIndex);
RouteView.cs (1)
57public Task SetParametersAsync(ParameterView parameters)
Routing\Router.cs (1)
117public 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.Authorization.Tests (15)
AuthorizeRouteViewTest.cs (10)
54_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 90_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 129_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 158_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 185_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 212var firstRenderTask = _renderer.RenderRootComponentAsync(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 256var firstRenderTask = _renderer.RenderRootComponentAsync(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 278_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 336_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 344var render2Task = _renderer.Dispatcher.InvokeAsync(() => _authorizeRouteViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
src\Components\Shared\test\AutoRenderComponent.cs (1)
18public virtual Task SetParametersAsync(ParameterView parameters)
src\Components\Shared\test\IComponentExtensions.cs (1)
12component.SetParametersAsync(ParameterView.FromDictionary(parameters));
src\Components\Shared\test\TestRenderer.cs (3)
61public void RenderRootComponent(int componentId, ParameterView? parameters = default) 63var task = Dispatcher.InvokeAsync(() => base.RenderRootComponentAsync(componentId, parameters ?? ParameterView.Empty)); 70public new Task RenderRootComponentAsync(int componentId, ParameterView parameters)
Microsoft.AspNetCore.Components.Endpoints (18)
Assets\ImportMap.cs (1)
42Task 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\ServerComponentSerializer.cs (2)
19public void SerializeInvocation(ref ComponentMarker marker, ServerComponentInvocationSequence invocationId, Type type, ParameterView parameters) 28ParameterView parameters,
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)
94ParameterView.Empty,
Rendering\EndpointHtmlRenderer.Prerendering.cs (3)
89ParameterView parameters) 98ParameterView parameters, 140ParameterView parameters,
Rendering\SSRRenderModeBoundary.cs (4)
101public Task SetParametersAsync(ParameterView parameters) 161var parameters = _latestParameters is null 162? ParameterView.Empty 163: ParameterView.FromDictionary((IDictionary<string, object?>)_latestParameters);
Results\RazorComponentResultExecutor.cs (2)
56var hostParameters = ParameterView.FromDictionary(new Dictionary<string, object?>
src\Shared\Components\ComponentParameter.cs (1)
14public static (IList<ComponentParameter> parameterDefinitions, IList<object?> parameterValues) FromParameterView(ParameterView parameters)
Microsoft.AspNetCore.Components.Endpoints.Tests (66)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
318Task IComponent.SetParametersAsync(ParameterView parameters) => throw new NotImplementedException();
EndpointHtmlRendererTest.cs (48)
57var result = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), new InteractiveWebAssemblyRenderMode(prerender: false), ParameterView.Empty); 80var result = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), RenderMode.InteractiveWebAssembly, ParameterView.Empty); 120ParameterView.FromDictionary(new Dictionary<string, object> 157ParameterView.FromDictionary(new Dictionary<string, object> 192ParameterView.FromDictionary(new Dictionary<string, object> 241ParameterView.FromDictionary(new Dictionary<string, object> 287var result = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), null, ParameterView.Empty); 304var result = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), new InteractiveServerRenderMode(false), ParameterView.Empty); 336var result = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), RenderMode.InteractiveServer, ParameterView.Empty); 379var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 397var firstResult = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), new InteractiveServerRenderMode(true), ParameterView.Empty); 401var secondResult = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), new InteractiveServerRenderMode(false), ParameterView.Empty); 437var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 454var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 493var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } }); 532var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 583var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } }); 632var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 649var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } }); 679var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } }); 701ParameterView.FromDictionary(new Dictionary<string, object> 721ParameterView.FromDictionary(new Dictionary<string, object> 741ParameterView.FromDictionary(new Dictionary<string, object> 773ParameterView.FromDictionary(new Dictionary<string, object> 801ParameterView.FromDictionary(new Dictionary<string, object> 818var result = await renderer.PrerenderComponentAsync(httpContext, typeof(AsyncComponent), null, ParameterView.Empty); 842await renderer.Dispatcher.InvokeAsync(() => renderer.BeginRenderingComponent(component, ParameterView.Empty).QuiescenceTask); 862ParameterView.FromDictionary(new Dictionary<string, object> 893await renderer.RenderEndpointComponent(httpContext, typeof(NamedEventHandlerComponent), ParameterView.Empty, true); 922await renderer.RenderEndpointComponent(httpContext, typeof(NamedEventHandlerComponent), ParameterView.Empty, true); 946var result = await renderer.Dispatcher.InvokeAsync(() => renderer.BeginRenderingComponent(component, ParameterView.Empty)); 989var result = await renderer.Dispatcher.InvokeAsync(() => renderer.BeginRenderingComponent(component, ParameterView.Empty)); 1026await renderer.RenderEndpointComponent(httpContext, typeof(EmptyComponent), ParameterView.Empty, true); 1027await renderer.BeginRenderingComponent(component, ParameterView.Empty).QuiescenceTask; 1058var result = await renderer.PrerenderComponentAsync(httpContext, typeof(ComponentWithInteractiveChildren), null, ParameterView.Empty); 1162ParameterView.Empty); 1396await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(id, ParameterView.Empty)); 1462ParameterView.FromDictionary(new Dictionary<string, object> 1606public Task SetParametersAsync(ParameterView parameters)
ImportMapTest.cs (5)
169await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 225await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 294public void RenderRootComponent(int componentId, ParameterView? parameters = default) 296var task = Dispatcher.InvokeAsync(() => base.RenderRootComponentAsync(componentId, parameters ?? ParameterView.Empty)); 303public new Task RenderRootComponentAsync(int componentId, ParameterView parameters)
RazorComponentEndpointDataSourceTest.cs (3)
329public Task SetParametersAsync(ParameterView parameters) 343public Task SetParametersAsync(ParameterView parameters) 357public Task SetParametersAsync(ParameterView parameters)
src\Components\Shared\src\WebRootComponentParameters.cs (3)
9ParameterView parameterView, 13public static readonly WebRootComponentParameters Empty = new(ParameterView.Empty, [], []); 19public ParameterView Parameters => parameterView;
src\Components\Shared\test\AutoRenderComponent.cs (1)
18public virtual Task SetParametersAsync(ParameterView parameters)
SSRRenderModeBoundaryTest.cs (1)
95public Task SetParametersAsync(ParameterView parameters)
WebRootComponentParametersTest.cs (4)
174var parameterView = ParameterView.FromDictionary(parameters); 187var parameterView = ParameterView.FromDictionary(parameters);
Microsoft.AspNetCore.Components.Forms.Tests (5)
src\Components\Shared\test\AutoRenderComponent.cs (1)
18public virtual Task SetParametersAsync(ParameterView parameters)
src\Components\Shared\test\IComponentExtensions.cs (1)
12component.SetParametersAsync(ParameterView.FromDictionary(parameters));
src\Components\Shared\test\TestRenderer.cs (3)
61public void RenderRootComponent(int componentId, ParameterView? parameters = default) 63var task = Dispatcher.InvokeAsync(() => base.RenderRootComponentAsync(componentId, parameters ?? ParameterView.Empty)); 70public new Task RenderRootComponentAsync(int componentId, ParameterView parameters)
Microsoft.AspNetCore.Components.QuickGrid (1)
Infrastructure\ColumnsCollectedNotifier.cs (1)
49public Task SetParametersAsync(ParameterView parameters)
Microsoft.AspNetCore.Components.Server (12)
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) 80parameters = ParameterView.FromDictionary(parametersDictionary);
Circuits\RemoteRenderer.cs (1)
69public 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\Components\Shared\src\WebRootComponentParameters.cs (3)
9ParameterView parameterView, 13public static readonly WebRootComponentParameters Empty = new(ParameterView.Empty, [], []); 19public ParameterView Parameters => parameterView;
src\Shared\Components\ComponentParameter.cs (1)
14public static (IList<ComponentParameter> parameterDefinitions, IList<object?> parameterValues) FromParameterView(ParameterView parameters)
Microsoft.AspNetCore.Components.Server.Tests (31)
Circuits\CircuitHostTest.cs (10)
228Parameters = ParameterView.Empty, 680parameters is null ? ParameterView.Empty : ParameterView.FromDictionary(parameters)); 691var parameterView = ParameterView.FromDictionary(parameters); 754public Task SetParametersAsync(ParameterView parameters) 802public async Task SetParametersAsync(ParameterView parameters) 829public Task SetParametersAsync(ParameterView parameters) 879public Task SetParametersAsync(ParameterView parameters) 927public Task SetParametersAsync(ParameterView parameters)
Circuits\RemoteRendererTest.cs (9)
218ParameterView.FromDictionary(new Dictionary<string, object> 281ParameterView.FromDictionary(new Dictionary<string, object> 344ParameterView.FromDictionary(new Dictionary<string, object> 401ParameterView.FromDictionary(new Dictionary<string, object> 688var parameterView = ParameterView.FromDictionary(parameters); 709public async Task RenderComponentAsync<TComponent>(ParameterView initialParameters) 761public Task SetParametersAsync(ParameterView parameters) 787public Task SetParametersAsync(ParameterView parameters)
Circuits\RenderBatchWriterTest.cs (1)
381public Task SetParametersAsync(ParameterView parameters)
Circuits\ServerComponentDeserializerTest.cs (8)
455parameters is null ? ParameterView.Empty : ParameterView.FromDictionary(parameters)); 466serializer.SerializeInvocation(ref markers[i], _invocationSequence, types[i], ParameterView.Empty); 484parameters == null ? ParameterView.Empty : ParameterView.FromDictionary(parameters)); 497serializer.SerializeInvocation(ref markers[i], sequence, types[i], ParameterView.Empty); 512public Task SetParametersAsync(ParameterView parameters) => throw new NotImplementedException(); 518public Task SetParametersAsync(ParameterView parameters) => throw new NotImplementedException();
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
155public Task SetParametersAsync(ParameterView parameters)
src\Components\Endpoints\src\DependencyInjection\ServerComponentSerializer.cs (2)
19public void SerializeInvocation(ref ComponentMarker marker, ServerComponentInvocationSequence invocationId, Type type, ParameterView parameters) 28ParameterView parameters,
Microsoft.AspNetCore.Components.Tests (166)
CascadingParameterStateTest.cs (2)
439renderer.Dispatcher.InvokeAsync((Action)(() => supplier.SetParametersAsync(ParameterView.FromDictionary(supplierParams)))); 504public Task SetParametersAsync(ParameterView parameters)
CascadingParameterTest.cs (5)
385Assert.Equal($"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.", ex.Message); 922private ParameterView lastParameterView; 932public override async Task SetParametersAsync(ParameterView parameters) 1002public override async Task SetParametersAsync(ParameterView parameters)
ComponentFactoryTest.cs (5)
271public Task SetParametersAsync(ParameterView parameters) 301public Task SetParametersAsync(ParameterView parameters) 319public Task SetParametersAsync(ParameterView parameters) 344public Task SetParametersAsync(ParameterView parameters) 398public Task SetParametersAsync(ParameterView parameters)
DependencyInjectionTest.cs (1)
238public Task SetParametersAsync(ParameterView parameters)
DynamicComponentTest.cs (8)
20_ = new DynamicComponent().SetParametersAsync(ParameterView.FromDictionary(parameters)); 36() => renderer.RenderRootComponent(componentId, ParameterView.Empty)); 50var parameters = ParameterView.FromDictionary(new Dictionary<string, object> 78var parameters = ParameterView.FromDictionary(new Dictionary<string, object> 112var parameters = ParameterView.FromDictionary(new Dictionary<string, object>
EventCallbackFactoryBinderExtensionsTest.cs (1)
667public Task SetParametersAsync(ParameterView parameters)
EventCallbackFactoryTest.cs (1)
644public Task SetParametersAsync(ParameterView parameters)
EventCallbackTest.cs (1)
430public Task SetParametersAsync(ParameterView parameters) => throw new NotImplementedException();
LayoutViewTest.cs (9)
27var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.Empty)); 40var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 61var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 87var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 119var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 160var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 170_renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 204var setParametersTask1 = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 214var setParametersTask2 = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
ParameterViewTest.Assignment.cs (32)
18var parameters = new ParameterViewBuilder 39var parameters = new ParameterViewBuilder 56var parameters = new ParameterViewBuilder 76var parameters = new ParameterViewBuilder 101var parameters = new ParameterViewBuilder().Build(); 118var parameters = builder.Build(); 134var parameters = builder.Build(); 154var parameters = builder.Build(); 173var parameters = new ParameterViewBuilder 195var parameters = new ParameterViewBuilder 218var parameters = builder.Build(); 232var parameters = new ParameterViewBuilder 254var parameters = builder.Build(); 273var parameters = builder.Build(); 293var parameters = builder.Build(); 310var parameters = builder.Build(); 325var parameters = new ParameterViewBuilder 342var parameters = new ParameterViewBuilder 373var parameters = new ParameterViewBuilder 397var parameters = new ParameterViewBuilder 421var parameters = new ParameterViewBuilder().Build(); 442var parameters = new ParameterViewBuilder().Build(); 463var parameters = new ParameterViewBuilder 488var parameters = builder.Build(); 505var parameters = new ParameterViewBuilder 527var parameters = new ParameterViewBuilder 547var parameters = new ParameterViewBuilder().Build(); 570var parameters = new ParameterViewBuilder().Build(); 588var parameters = new ParameterViewBuilder 613var parameters = new ParameterViewBuilder 748public ParameterView Build() 762var view = new ParameterView(ParameterViewLifetime.Unbound, builder.GetFrames().Array, ownerIndex: 0);
ParameterViewTest.cs (44)
19var parameters = new ParameterView(ParameterViewLifetime.Unbound, frames, 0); 33var parameters = new ParameterView(ParameterViewLifetime.Unbound, frames, 0); 55var parameters = new ParameterView(ParameterViewLifetime.Unbound, frames, 0); 77var parameters = new ParameterView(ParameterViewLifetime.Unbound, frames, 0); 92var parameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 113var parameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 131var parameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 150var parameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 169var parameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 187var parameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 208var parameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 225var parameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 245var collection = ParameterView.FromDictionary(dictionary); 262var collection = ParameterView.FromDictionary(dictionary); 273var parameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 302var parameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 330var parameterView = new ParameterView(lifetime, frames, 0); 343Assert.Equal($"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.", ex.Message); 350var initial = ParameterView.Empty; 353var cloned = initial.Clone(); 364var initial = new ParameterView(ParameterViewLifetime.Unbound, new[] 371var cloned = initial.Clone(); 386var initial = new ParameterView(ParameterViewLifetime.Unbound, new[] 395var cloned = initial.Clone(); 409var oldParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 413var newParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 429var oldParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 433var newParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 450var oldParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 455var newParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 471var oldParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 478var newParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 496var oldParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 503var newParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 522var oldParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 529var newParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 549var oldParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 556var newParameters = new ParameterView(ParameterViewLifetime.Unbound, new[] 581public IEnumerable<ParameterValue> ToEnumerable(ParameterView parameters) 594public Task SetParametersAsync(ParameterView parameters)
RendererTest.cs (37)
238await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 282renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 298renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 372_ = renderer.RenderRootComponentAsync(componentId.Value, ParameterView.Empty); 397await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 441await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 485await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3552var task = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3585var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3618var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3652var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3749var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3807var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3862var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3916var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3994public Task SetParametersAsync(ParameterView parameters) 4029public Task SetParametersAsync(ParameterView parameters) 4046var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4080var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4117await renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4454var parameterView = capturingComponent.CapturedParameterView; 4465Assert.Equal($"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.", ex.Message); 5118public Task SetParametersAsync(ParameterView parameters) => throw new NotImplementedException(); 5130public Task SetParametersAsync(ParameterView parameters) => throw new NotImplementedException(); 5198public Task SetParametersAsync(ParameterView parameters) 5267public Task SetParametersAsync(ParameterView parameters) 5424public Task SetParametersAsync(ParameterView parameters) 5455public Task SetParametersAsync(ParameterView parameters) 5512Task IComponent.SetParametersAsync(ParameterView parameters) 5589public async Task SetParametersAsync(ParameterView parameters) 5637public Task SetParametersAsync(ParameterView parameters) 5948public ParameterView CapturedParameterView { get; private set; } 5956public Task SetParametersAsync(ParameterView parameters) 6007public override async Task SetParametersAsync(ParameterView parameters) 6054public override async Task SetParametersAsync(ParameterView parameters) 6075public Task SetParametersAsync(ParameterView parameters)
Rendering\RenderTreeBuilderTest.cs (1)
2283public Task SetParametersAsync(ParameterView parameters)
RenderTreeDiffBuilderTest.cs (5)
2490public Task SetParametersAsync(ParameterView parameters) 2503public Task SetParametersAsync(ParameterView parameters) => Task.CompletedTask; 2514public Task SetParametersAsync(ParameterView parameters) 2528public Task SetParametersAsync(ParameterView parameters) => Task.CompletedTask; 2535public Task SetParametersAsync(ParameterView parameters) => Task.CompletedTask;
RouteViewTest.cs (5)
38_ = _routeViewComponent.SetParametersAsync(ParameterView.Empty); 55_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 103_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 127_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 150_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
Routing\RouterTest.cs (4)
194_router.SetParametersAsync(ParameterView.FromDictionary(parameters))); 221_router.SetParametersAsync(ParameterView.FromDictionary(parameters))); 240_router.SetParametersAsync(ParameterView.FromDictionary(parameters))); 260_router.SetParametersAsync(ParameterView.FromDictionary(parameters)));
src\Components\Shared\test\AutoRenderComponent.cs (1)
18public virtual Task SetParametersAsync(ParameterView parameters)
src\Components\Shared\test\IComponentExtensions.cs (1)
12component.SetParametersAsync(ParameterView.FromDictionary(parameters));
src\Components\Shared\test\TestRenderer.cs (3)
61public void RenderRootComponent(int componentId, ParameterView? parameters = default) 63var task = Dispatcher.InvokeAsync(() => base.RenderRootComponentAsync(componentId, parameters ?? ParameterView.Empty)); 70public new Task RenderRootComponentAsync(int componentId, ParameterView parameters)
Microsoft.AspNetCore.Components.Web (15)
Forms\AntiforgeryToken.cs (1)
26Task IComponent.SetParametersAsync(ParameterView parameters)
Forms\InputBase.cs (2)
224public override Task SetParametersAsync(ParameterView parameters) 270return base.SetParametersAsync(ParameterView.Empty);
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)
54ParameterView initialParameters) 68ParameterView initialParameters)
Routing\NavigationLock.cs (1)
47Task IComponent.SetParametersAsync(ParameterView parameters)
Microsoft.AspNetCore.Components.Web.Tests (21)
Forms\Mapping\SupplyParameterFromFormTest.cs (1)
104public Task SetParametersAsync(ParameterView parameters)
HtmlRendering\HtmlRendererTest.cs (15)
648RenderFragment Content(ParameterView pc) => new RenderFragment((RenderTreeBuilder rtb) => 658var serviceProvider = GetServiceProvider(collection => collection.AddSingleton(new Func<ParameterView, RenderFragment>(Content))); 666ParameterView.FromDictionary(new Dictionary<string, object> 742Func<ParameterView, RenderFragment> CreateRenderFragment { get; set; } 744public Task SetParametersAsync(ParameterView parameters) 763var result = await htmlRenderer.RenderComponentAsync<AsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 789var result = await htmlRenderer.RenderComponentAsync<NestedAsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 811var first = await htmlRenderer.RenderComponentAsync<SectionOutlet>(ParameterView.FromDictionary(new Dictionary<string, object> 819var second = await htmlRenderer.RenderComponentAsync<SectionContent>(ParameterView.FromDictionary(new Dictionary<string, object> 896await htmlRenderer.RenderComponentAsync<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 917htmlRenderer.RenderComponentAsync<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 937htmlRenderer.BeginRenderingComponent<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 957var content = htmlRenderer.BeginRenderingComponent<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 1275public Task SetParametersAsync(ParameterView parameters) 1307public Task SetParametersAsync(ParameterView parameters)
src\Components\Shared\test\AutoRenderComponent.cs (1)
18public virtual Task SetParametersAsync(ParameterView parameters)
src\Components\Shared\test\IComponentExtensions.cs (1)
12component.SetParametersAsync(ParameterView.FromDictionary(parameters));
src\Components\Shared\test\TestRenderer.cs (3)
61public void RenderRootComponent(int componentId, ParameterView? parameters = default) 63var task = Dispatcher.InvokeAsync(() => base.RenderRootComponentAsync(componentId, parameters ?? ParameterView.Empty)); 70public new Task RenderRootComponentAsync(int componentId, ParameterView parameters)
Microsoft.AspNetCore.Components.WebAssembly (14)
Hosting\RootComponentMapping.cs (3)
35Parameters = ParameterView.Empty; 45public RootComponentMapping([DynamicallyAccessedMembers(Component)] Type componentType, string selector, ParameterView parameters) : this(componentType, selector) 64public ParameterView Parameters { get; }
Hosting\RootComponentMappingCollection.cs (2)
38Add(componentType, selector, ParameterView.Empty); 47public void Add([DynamicallyAccessedMembers(Component)] Type componentType, string selector, ParameterView parameters)
Hosting\WebAssemblyHostBuilder.cs (1)
153var parameters = componentDeserializer.DeserializeParameters(definitions, values);
Prerendering\WebAssemblyComponentParameterDeserializer.cs (2)
24public ParameterView DeserializeParameters(IList<ComponentParameter> parametersDefinitions, IList<object> parameterValues) 74return ParameterView.FromDictionary(parametersDictionary);
Rendering\WebAssemblyRenderer.cs (1)
92public Task AddComponentAsync([DynamicallyAccessedMembers(Component)] Type componentType, ParameterView parameters, string domElementSelector)
Services\DefaultWebAssemblyJSRuntime.cs (1)
147var parameters = componentDeserializer.DeserializeParameters(definitions, values);
src\Components\Shared\src\WebRootComponentParameters.cs (3)
9ParameterView parameterView, 13public static readonly WebRootComponentParameters Empty = new(ParameterView.Empty, [], []); 19public ParameterView Parameters => parameterView;
src\Shared\Components\ComponentParameter.cs (1)
14public static (IList<ComponentParameter> parameterDefinitions, IList<object?> parameterValues) FromParameterView(ParameterView parameters)
Microsoft.AspNetCore.Components.WebView (4)
Services\WebViewRenderer.cs (1)
67public new Task RenderRootComponentAsync(int componentId, ParameterView parameters)
WebViewManager.cs (3)
89public Task AddRootComponentAsync(Type componentType, string selector, ParameterView parameters) 118/// <param name="selector">The CSS selector describing where in the page the component was placed. This must exactly match the selector provided on an earlier call to <see cref="AddRootComponentAsync(Type, string, ParameterView)"/>.</param> 249public ParameterView Parameters { get; init; }
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)
58 manager.AddRootComponentAsync(typeof(StaticContentChangeNotifier), "body::after", ParameterView.Empty); 155 public Task SetParametersAsync(ParameterView parameters)
Microsoft.AspNetCore.Components.WebView.Photino (3)
BlazorWindowRootComponents.cs (3)
31var parameterView = parameters == null 32? ParameterView.Empty 33: ParameterView.FromDictionary(parameters);
Microsoft.AspNetCore.Components.WebView.Test (8)
WebViewManagerTests.cs (8)
17await webViewManager.AddRootComponentAsync(typeof(MyComponent), "#app", ParameterView.Empty); 44await webViewManager.AddRootComponentAsync(typeof(MyComponent), "#app", ParameterView.Empty); 59await webViewManager.AddRootComponentAsync(typeof(MyComponent), "#app", ParameterView.Empty); 90await webViewManager.AddRootComponentAsync(typeof(MyComponentUsingScopedAsyncDisposableService), "#app", ParameterView.Empty); 105await webViewManager.AddRootComponentAsync(typeof(MyComponent), arbitraryComponentSelector, ParameterView.Empty); 108var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await webViewManager.AddRootComponentAsync(typeof(MyComponent), arbitraryComponentSelector, ParameterView.Empty)); 129public Task SetParametersAsync(ParameterView parameters) 153public 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)
58 manager.AddRootComponentAsync(typeof(StaticContentChangeNotifier), "body::after", ParameterView.Empty); 155 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)
58 manager.AddRootComponentAsync(typeof(StaticContentChangeNotifier), "body::after", ParameterView.Empty); 155 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));