5 overrides of InvokeAsync
Microsoft.AspNetCore.Components (1)
Rendering\RendererSynchronizationContextDispatcher.cs (1)
33public override Task InvokeAsync(Func<Task> workItem)
Microsoft.AspNetCore.Components.WebAssembly (2)
Rendering\NullDispatcher.cs (1)
24public override Task InvokeAsync(Func<Task> workItem)
Rendering\WebAssemblyDispatcher.cs (1)
79public override Task InvokeAsync(Func<Task> workItem)
Microsoft.AspNetCore.Components.WebView.Photino (1)
PhotinoDispatcher.cs (1)
34public override Task InvokeAsync(Func<Task> workItem)
Wasm.Performance.ConsoleHost (1)
NullDispatcher.cs (1)
21public override Task InvokeAsync(Func<Task> workItem)
107 references to InvokeAsync
Microsoft.AspNetCore.Components (2)
ComponentBase.cs (1)
214=> _renderHandle.Dispatcher.InvokeAsync(workItem);
Infrastructure\ComponentStatePersistenceManager.cs (1)
58return renderer.Dispatcher.InvokeAsync(PauseAndPersistState);
Microsoft.AspNetCore.Components.Authorization.Tests (6)
AuthorizeRouteViewTest.cs (1)
344var render2Task = _renderer.Dispatcher.InvokeAsync(() => _authorizeRouteViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
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));
Microsoft.AspNetCore.Components.Endpoints (2)
RazorComponentEndpointInvoker.cs (1)
33return _renderer.Dispatcher.InvokeAsync(() => RenderComponentCore(context));
Results\RazorComponentResultExecutor.cs (1)
48return endpointHtmlRenderer.Dispatcher.InvokeAsync(async () =>
Microsoft.AspNetCore.Components.Endpoints.Tests (7)
ImportMapTest.cs (7)
167await _renderer.Dispatcher.InvokeAsync(async () => 223await _renderer.Dispatcher.InvokeAsync(async () => 296var task = Dispatcher.InvokeAsync(() => base.RenderRootComponentAsync(componentId, parameters ?? ParameterView.Empty)); 301=> Dispatcher.InvokeAsync(() => base.RenderRootComponentAsync(componentId)); 304=> Dispatcher.InvokeAsync(() => base.RenderRootComponentAsync(componentId, parameters)); 307=> Dispatcher.InvokeAsync(() => base.DispatchEventAsync(eventHandlerId, null, args)); 310=> Dispatcher.InvokeAsync(() => base.DispatchEventAsync(eventHandlerId, eventFieldInfo, args));
Microsoft.AspNetCore.Components.Forms.Tests (5)
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));
Microsoft.AspNetCore.Components.Server (5)
Circuits\CircuitHost.cs (3)
107return HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(async () => 179await Renderer.Dispatcher.InvokeAsync(async () => 616_ = Renderer.Dispatcher.InvokeAsync(Renderer.ProcessBufferedRenderBatches);
Circuits\CircuitRegistry.cs (2)
96circuitHandlerTask = circuitHost.Renderer.Dispatcher.InvokeAsync(() => circuitHost.OnConnectionDownAsync(default)); 199circuitHandlerTask = circuitHost.Renderer.Dispatcher.InvokeAsync(async () =>
Microsoft.AspNetCore.Components.Tests (30)
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 (8)
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>
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)
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));
Microsoft.AspNetCore.Components.Web.Tests (47)
HtmlRendering\HtmlRendererTest.cs (42)
57await htmlRenderer.Dispatcher.InvokeAsync(async () => 80await htmlRenderer.Dispatcher.InvokeAsync(async () => 103await htmlRenderer.Dispatcher.InvokeAsync(async () => 126await htmlRenderer.Dispatcher.InvokeAsync(async () => 150await htmlRenderer.Dispatcher.InvokeAsync(async () => 183await htmlRenderer.Dispatcher.InvokeAsync(async () => 207await htmlRenderer.Dispatcher.InvokeAsync(async () => 231await htmlRenderer.Dispatcher.InvokeAsync(async () => 254await htmlRenderer.Dispatcher.InvokeAsync(async () => 279await htmlRenderer.Dispatcher.InvokeAsync(async () => 311await htmlRenderer.Dispatcher.InvokeAsync(async () => 359await htmlRenderer.Dispatcher.InvokeAsync(async () => 384await htmlRenderer.Dispatcher.InvokeAsync(async () => 409await htmlRenderer.Dispatcher.InvokeAsync(async () => 433await htmlRenderer.Dispatcher.InvokeAsync(async () => 457await htmlRenderer.Dispatcher.InvokeAsync(async () => 481await htmlRenderer.Dispatcher.InvokeAsync(async () => 504await htmlRenderer.Dispatcher.InvokeAsync(async () => 529await htmlRenderer.Dispatcher.InvokeAsync(async () => 568await htmlRenderer.Dispatcher.InvokeAsync(async () => 599await htmlRenderer.Dispatcher.InvokeAsync(async () => 631await htmlRenderer.Dispatcher.InvokeAsync(async () => 662await htmlRenderer.Dispatcher.InvokeAsync(async () => 693await htmlRenderer.Dispatcher.InvokeAsync(async () => 722await htmlRenderer.Dispatcher.InvokeAsync(async () => 760await htmlRenderer.Dispatcher.InvokeAsync(async () => 786await htmlRenderer.Dispatcher.InvokeAsync(async () => 808await htmlRenderer.Dispatcher.InvokeAsync(async () => 848await htmlRenderer.Dispatcher.InvokeAsync(async () => 869await htmlRenderer.Dispatcher.InvokeAsync(async () => 891await htmlRenderer.Dispatcher.InvokeAsync(async () => 913await htmlRenderer.Dispatcher.InvokeAsync(async () => 954await htmlRenderer.Dispatcher.InvokeAsync(async () => 999await htmlRenderer.Dispatcher.InvokeAsync(async () => 1024await htmlRenderer.Dispatcher.InvokeAsync(async () => 1047await htmlRenderer.Dispatcher.InvokeAsync(async () => 1072await htmlRenderer.Dispatcher.InvokeAsync(async () => 1100await htmlRenderer.Dispatcher.InvokeAsync(async () => 1131await htmlRenderer.Dispatcher.InvokeAsync(async () => 1153await htmlRenderer.Dispatcher.InvokeAsync(async () => 1175await htmlRenderer.Dispatcher.InvokeAsync(async () => 1196await htmlRenderer.Dispatcher.InvokeAsync(async () =>
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));
Microsoft.AspNetCore.Components.WebView (2)
WebViewManager.cs (2)
101return Dispatcher.InvokeAsync(() => 152_ = _dispatcher.InvokeAsync(async () =>
Microsoft.AspNetCore.Components.WebView.Photino (1)
BlazorWindowRootComponents.cs (1)
36_ = _manager.Dispatcher.InvokeAsync(async () =>