8 instantiations of ParameterView
Microsoft.AspNetCore.Components (8)
460 references to ParameterView
BasicTestApp (8)
Microsoft.AspNetCore.Components (52)
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>
Microsoft.AspNetCore.Components.Endpoints (18)
Microsoft.AspNetCore.Components.Endpoints.Tests (66)
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)
Microsoft.AspNetCore.Components.Forms.Tests (5)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.Server (12)
Microsoft.AspNetCore.Components.Server.Tests (31)
Microsoft.AspNetCore.Components.Tests (166)
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)
Microsoft.AspNetCore.Components.Web (15)
Microsoft.AspNetCore.Components.Web.Tests (21)
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)
Microsoft.AspNetCore.Components.WebAssembly (14)
Microsoft.AspNetCore.Components.WebView (4)
Microsoft.AspNetCore.Components.WebView.Maui (5)
Microsoft.AspNetCore.Components.WebView.Photino (3)
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)
Microsoft.AspNetCore.Components.WebView.Wpf (5)
Microsoft.AspNetCore.Mvc.TagHelpers (3)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)