Base:
property
Dispatcher
Microsoft.AspNetCore.Components.RenderTree.Renderer.Dispatcher
1 override of Dispatcher
Microsoft.AspNetCore.Components.Tests (1)
ComponentFactoryTest.cs (1)
424public override Dispatcher Dispatcher => throw new NotImplementedException();
3 writes to Dispatcher
Microsoft.AspNetCore.Components.Tests (3)
src\Components\Shared\test\TestRenderer.cs (3)
19Dispatcher = dispatcher; 24Dispatcher = Dispatcher.CreateDefault(); 30Dispatcher = Dispatcher.CreateDefault();
51 references to Dispatcher
Microsoft.AspNetCore.Components.Tests (51)
CascadingParameterStateTest.cs (1)
439renderer.Dispatcher.InvokeAsync((Action)(() => supplier.SetParametersAsync(ParameterView.FromDictionary(supplierParams))));
CascadingParameterTest.cs (5)
582var componentId = await renderer.Dispatcher.InvokeAsync(() => renderer.AssignRootComponentId(component)); 633await renderer.Dispatcher.InvokeAsync(() => renderer.RemoveRootComponent(componentId)); 652var componentId = await renderer.Dispatcher.InvokeAsync(() => renderer.AssignRootComponentId(component)); 708var componentId = await renderer.Dispatcher.InvokeAsync(() => renderer.AssignRootComponentId(component)); 850await renderer.Dispatcher.InvokeAsync(() => renderer.AssignRootComponentId(component));
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>
RendererTest.cs (16)
185var renderTask = renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId)); 238await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 324var renderTask1 = renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(component1Id)); 331var renderTask2 = renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(component2Id)); 379var renderTask = renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId.Value)); 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> 3722await renderer.Dispatcher.InvokeAsync(component.TriggerRender); 4808_ = renderer.Dispatcher.InvokeAsync(() => renderer.RemoveRootComponent(rootComponentId)); 4826await renderer.Dispatcher.InvokeAsync(() => 4849await renderer.Dispatcher.InvokeAsync(() => 4881await renderer.Dispatcher.InvokeAsync(() => 4924renderer.Dispatcher.InvokeAsync(() => renderer.RemoveRootComponent(rootComponentId)); 4948wasOnSyncContext = renderer.Dispatcher.CheckAccess(); 4970wasOnSyncContext = renderer.Dispatcher.CheckAccess();
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 (11)
50await _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/jan", false)); 79var janTask = _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/jan", false)); 80var febTask = _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/feb", false)); 119var jan = _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/jan", false)); 120var feb = _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/feb", false)); 172var jan = _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/jan", false)); 173var feb = _renderer.Dispatcher.InvokeAsync(() => _router.RunOnNavigateAsync("http://example.com/feb", false)); 193await _renderer.Dispatcher.InvokeAsync(() => 220await _renderer.Dispatcher.InvokeAsync(() => 239await _renderer.Dispatcher.InvokeAsync(() => 259await _renderer.Dispatcher.InvokeAsync(() =>
src\Components\Shared\test\TestRenderer.cs (5)
63var task = Dispatcher.InvokeAsync(() => base.RenderRootComponentAsync(componentId, parameters ?? ParameterView.Empty)); 68=> Dispatcher.InvokeAsync(() => base.RenderRootComponentAsync(componentId)); 71=> Dispatcher.InvokeAsync(() => base.RenderRootComponentAsync(componentId, parameters)); 74=> Dispatcher.InvokeAsync(() => base.DispatchEventAsync(eventHandlerId, null, args)); 77=> Dispatcher.InvokeAsync(() => base.DispatchEventAsync(eventHandlerId, eventFieldInfo, args));