5 overrides of InvokeAsync
Microsoft.AspNetCore.Components (1)
Rendering\RendererSynchronizationContextDispatcher.cs (1)
21public override Task InvokeAsync(Action workItem)
Microsoft.AspNetCore.Components.WebAssembly (2)
Rendering\NullDispatcher.cs (1)
16public override Task InvokeAsync(Action workItem)
Rendering\WebAssemblyDispatcher.cs (1)
18public override Task InvokeAsync(Action workItem)
Microsoft.AspNetCore.Components.WebView.Photino (1)
PhotinoDispatcher.cs (1)
23public override Task InvokeAsync(Action workItem)
Wasm.Performance.ConsoleHost (1)
NullDispatcher.cs (1)
15public override Task InvokeAsync(Action workItem)
46 references to InvokeAsync
Microsoft.AspNetCore.Components (5)
ComponentBase.cs (1)
206=> _renderHandle.Dispatcher.InvokeAsync(workItem);
RenderHandle.cs (1)
110return Dispatcher.InvokeAsync(() => renderer!.HandleComponentException(exception, componentId));
RenderTree\Renderer.cs (3)
173await Dispatcher.InvokeAsync(() => 1150var done = Dispatcher.InvokeAsync(() => Dispose(disposing)); 1291await Dispatcher.InvokeAsync(Dispose);
Microsoft.AspNetCore.Components.Authorization.Tests (1)
src\Components\Shared\test\AutoRenderComponent.cs (1)
28var t = _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(BuildRenderTree));
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
275await _dispatcher.InvokeAsync(() => WriteTo(writer, HtmlEncoder.Default));
Microsoft.AspNetCore.Components.Endpoints.Tests (7)
ImportMapTest.cs (6)
63await _renderer.Dispatcher.InvokeAsync(() => _renderer.RenderRootComponent(id)); 110await _renderer.Dispatcher.InvokeAsync(() => _renderer.RenderRootComponent(id)); 164await _renderer.Dispatcher.InvokeAsync(() => _renderer.RenderRootComponent(id)); 175await _renderer.Dispatcher.InvokeAsync(_renderer.ProcessPendingRender); 220await _renderer.Dispatcher.InvokeAsync(() => _renderer.RenderRootComponent(id)); 231await _renderer.Dispatcher.InvokeAsync(_renderer.ProcessPendingRender);
src\Components\Shared\test\AutoRenderComponent.cs (1)
28var t = _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(BuildRenderTree));
Microsoft.AspNetCore.Components.Forms.Tests (1)
src\Components\Shared\test\AutoRenderComponent.cs (1)
28var t = _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(BuildRenderTree));
Microsoft.AspNetCore.Components.Server (5)
Circuits\CircuitHost.cs (4)
375await HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(() => 401await HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(() => 435await HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(() => 535await HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(() =>
Circuits\RemoteRenderer.cs (1)
297return Dispatcher.InvokeAsync(() =>
Microsoft.AspNetCore.Components.Server.Tests (4)
Circuits\CircuitHostTest.cs (2)
892var task = _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(Render)); 935var task = _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(_renderFragment));
Circuits\RemoteRendererTest.cs (2)
769var task = _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(_renderFragment)); 798var task = _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(Content));
Microsoft.AspNetCore.Components.Tests (13)
CascadingParameterStateTest.cs (1)
439renderer.Dispatcher.InvokeAsync((Action)(() => supplier.SetParametersAsync(ParameterView.FromDictionary(supplierParams))));
CascadingParameterTest.cs (1)
633await renderer.Dispatcher.InvokeAsync(() => renderer.RemoveRootComponent(componentId));
RendererTest.cs (10)
2260renderHandle.Dispatcher.InvokeAsync(() => renderHandle.Render(builder 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)); 5206var t = _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(_renderFragment)); 5464renderHandle.Dispatcher.InvokeAsync(() => renderHandle.Render(builder => 5642public Task TriggerRenderAsync() => _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(RenderFragment));
src\Components\Shared\test\AutoRenderComponent.cs (1)
28var t = _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(BuildRenderTree));
Microsoft.AspNetCore.Components.Web.Tests (5)
Forms\InputBaseTest.cs (3)
390await renderer.Dispatcher.InvokeAsync(rootComponent.EditContext.NotifyValidationStateChanged); 420await renderer.Dispatcher.InvokeAsync(rootComponent.EditContext.NotifyValidationStateChanged); 521await renderer.Dispatcher.InvokeAsync(rootComponent.EditContext.NotifyValidationStateChanged);
HtmlRendering\HtmlRendererTest.cs (1)
932await htmlRenderer.Dispatcher.InvokeAsync(() =>
src\Components\Shared\test\AutoRenderComponent.cs (1)
28var t = _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(BuildRenderTree));
Microsoft.AspNetCore.Components.WebView (4)
IpcSender.cs (3)
81_dispatcher.InvokeAsync(() => _messageDispatcher(message)); 84_dispatcher.InvokeAsync(() => ExceptionDispatchInfo.Capture(exception).Throw()); 89NotifyErrors(_dispatcher.InvokeAsync(() => _messageDispatcher(message)));
WebViewManager.cs (1)
130return Dispatcher.InvokeAsync(() => _currentPageContext.Renderer.RemoveRootComponent(rootComponent.ComponentId.Value));