126 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)
186: ParameterView.FromDictionary((IDictionary<string, object?>)_latestParameters);
Results\RazorComponentResultExecutor.cs (1)
57var hostParameters = ParameterView.FromDictionary(new Dictionary<string, object?>
Microsoft.AspNetCore.Components.Endpoints.Tests (25)
EndpointHtmlRendererTest.cs (21)
212ParameterView.FromDictionary(new Dictionary<string, object> 250ParameterView.FromDictionary(new Dictionary<string, object> 286ParameterView.FromDictionary(new Dictionary<string, object> 336ParameterView.FromDictionary(new Dictionary<string, object> 475var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 533var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 550var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 589var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } }); 628var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 679var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } }); 728var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 745var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } }); 775var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } }); 797ParameterView.FromDictionary(new Dictionary<string, object> 817ParameterView.FromDictionary(new Dictionary<string, object> 837ParameterView.FromDictionary(new Dictionary<string, object> 876ParameterView.FromDictionary(new Dictionary<string, object> 892ParameterView.FromDictionary(new Dictionary<string, object> 924ParameterView.FromDictionary(new Dictionary<string, object> 1005ParameterView.FromDictionary(new Dictionary<string, object> 1608ParameterView.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.QuickGrid.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 (10)
Circuits\CircuitHostTest.cs (2)
878parameters is null ? ParameterView.Empty : ParameterView.FromDictionary(parameters)); 889var parameterView = ParameterView.FromDictionary(parameters);
Circuits\CircuitPersistenceManagerTest.cs (1)
542ParameterView.FromDictionary(parameters),
Circuits\RemoteRendererTest.cs (5)
220ParameterView.FromDictionary(new Dictionary<string, object> 283ParameterView.FromDictionary(new Dictionary<string, object> 346ParameterView.FromDictionary(new Dictionary<string, object> 403ParameterView.FromDictionary(new Dictionary<string, object> 690var 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 (47)
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)
239await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 283renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 299renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 398await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 442await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 486await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3553var task = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3586var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3619var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3653var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3750var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3808var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3863var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3917var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4047var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4081var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4118await 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 (10)
197_router.SetParametersAsync(ParameterView.FromDictionary(parameters))); 224_router.SetParametersAsync(ParameterView.FromDictionary(parameters))); 243_router.SetParametersAsync(ParameterView.FromDictionary(parameters))); 263_router.SetParametersAsync(ParameterView.FromDictionary(parameters))); 299router.SetParametersAsync(ParameterView.FromDictionary(parameters)))); 334testRouter.SetParametersAsync(ParameterView.FromDictionary(parameters))); 386testRouter.SetParametersAsync(ParameterView.FromDictionary(parameters))); 438testRouter.SetParametersAsync(ParameterView.FromDictionary(parameters))); 465_router.SetParametersAsync(ParameterView.FromDictionary(parameters))); 480_router.SetParametersAsync(ParameterView.FromDictionary(parameters)));
src\Components\Shared\test\IComponentExtensions.cs (1)
12component.SetParametersAsync(ParameterView.FromDictionary(parameters));
Microsoft.AspNetCore.Components.Web.Tests (21)
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>
Media\FileDownloadTest.cs (3)
33await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 128await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 145private static ParameterView Params(string key, string fileName) => ParameterView.FromDictionary(new Dictionary<string, object?>
Media\ImageTest.cs (8)
41await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 58await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 64await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 82await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 100await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 105await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 121await renderer.RenderRootComponentAsync(id, ParameterView.FromDictionary(new Dictionary<string, object?> 127await renderer.RenderRootComponentAsync(id, 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));