106 references to FromDictionary
Microsoft.AspNetCore.Components.Authorization.Tests (11)
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\IComponentExtensions.cs (1)
12component.SetParametersAsync(ParameterView.FromDictionary(parameters));
Microsoft.AspNetCore.Components.Endpoints (2)
Rendering\SSRRenderModeBoundary.cs (1)
163: ParameterView.FromDictionary((IDictionary<string, object?>)_latestParameters);
Results\RazorComponentResultExecutor.cs (1)
56var hostParameters = ParameterView.FromDictionary(new Dictionary<string, object?>
Microsoft.AspNetCore.Components.Endpoints.Tests (24)
EndpointHtmlRendererTest.cs (20)
120ParameterView.FromDictionary(new Dictionary<string, object> 157ParameterView.FromDictionary(new Dictionary<string, object> 192ParameterView.FromDictionary(new Dictionary<string, object> 241ParameterView.FromDictionary(new Dictionary<string, object> 379var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 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> 862ParameterView.FromDictionary(new Dictionary<string, object> 1462ParameterView.FromDictionary(new Dictionary<string, object>
ImportMapTest.cs (2)
169await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 225await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
WebRootComponentParametersTest.cs (2)
174var parameterView = ParameterView.FromDictionary(parameters); 187var parameterView = ParameterView.FromDictionary(parameters);
Microsoft.AspNetCore.Components.Forms.Tests (1)
src\Components\Shared\test\IComponentExtensions.cs (1)
12component.SetParametersAsync(ParameterView.FromDictionary(parameters));
Microsoft.AspNetCore.Components.Server (1)
Circuits\ComponentParameterDeserializer.cs (1)
80parameters = ParameterView.FromDictionary(parametersDictionary);
Microsoft.AspNetCore.Components.Server.Tests (9)
Circuits\CircuitHostTest.cs (2)
680parameters is null ? ParameterView.Empty : ParameterView.FromDictionary(parameters)); 691var parameterView = ParameterView.FromDictionary(parameters);
Circuits\RemoteRendererTest.cs (5)
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);
Circuits\ServerComponentDeserializerTest.cs (2)
455parameters is null ? ParameterView.Empty : ParameterView.FromDictionary(parameters)); 484parameters == null ? ParameterView.Empty : ParameterView.FromDictionary(parameters));
Microsoft.AspNetCore.Components.Tests (41)
CascadingParameterStateTest.cs (1)
439renderer.Dispatcher.InvokeAsync((Action)(() => supplier.SetParametersAsync(ParameterView.FromDictionary(supplierParams))));
DynamicComponentTest.cs (4)
20_ = new DynamicComponent().SetParametersAsync(ParameterView.FromDictionary(parameters)); 50var parameters = ParameterView.FromDictionary(new Dictionary<string, object> 78var parameters = ParameterView.FromDictionary(new Dictionary<string, object> 112var parameters = ParameterView.FromDictionary(new Dictionary<string, object>
LayoutViewTest.cs (8)
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.cs (2)
245var collection = ParameterView.FromDictionary(dictionary); 262var collection = ParameterView.FromDictionary(dictionary);
RendererTest.cs (17)
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> 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> 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>
RouteViewTest.cs (4)
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\IComponentExtensions.cs (1)
12component.SetParametersAsync(ParameterView.FromDictionary(parameters));
Microsoft.AspNetCore.Components.Web.Tests (10)
HtmlRendering\HtmlRendererTest.cs (9)
666ParameterView.FromDictionary(new Dictionary<string, object> 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>
src\Components\Shared\test\IComponentExtensions.cs (1)
12component.SetParametersAsync(ParameterView.FromDictionary(parameters));
Microsoft.AspNetCore.Components.WebAssembly (1)
Prerendering\WebAssemblyComponentParameterDeserializer.cs (1)
74return ParameterView.FromDictionary(parametersDictionary);
Microsoft.AspNetCore.Components.WebView.Maui (1)
RootComponent.cs (1)
49 var parameterView = Parameters == null ? ParameterView.Empty : ParameterView.FromDictionary(Parameters);
Microsoft.AspNetCore.Components.WebView.Photino (1)
BlazorWindowRootComponents.cs (1)
33: ParameterView.FromDictionary(parameters);
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
RootComponent.cs (1)
52 var parameterView = Parameters == null ? ParameterView.Empty : ParameterView.FromDictionary(Parameters);
Microsoft.AspNetCore.Components.WebView.Wpf (1)
RootComponent.cs (1)
48 var parameterView = Parameters == null ? ParameterView.Empty : ParameterView.FromDictionary(Parameters);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
ComponentTagHelper.cs (1)
98var parameters = _parameters is null || _parameters.Count == 0 ? ParameterView.Empty : ParameterView.FromDictionary(_parameters);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Rendering\HtmlHelperComponentExtensions.cs (1)
60ParameterView.FromDictionary(HtmlHelper.ObjectToDictionary(parameters));