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