63 references to InvokeVoidAsync
Aspire.Dashboard (37)
Components\Controls\AspireMenu.razor.cs (2)
134await JS.InvokeVoidAsync("focusElement", focusId); 180await JS.InvokeVoidAsync("focusElement", Anchor);
Components\Controls\GridValue.razor.cs (1)
157await JS.InvokeVoidAsync("setCellTextClickHandler", _cellTextId);
Components\Controls\ResourceDetails.razor.cs (1)
245await JS.InvokeVoidAsync("scrollToTop", ".property-grid-container");
Components\Controls\SpanDetails.razor.cs (1)
192await JS.InvokeVoidAsync("scrollToTop", ".property-grid-container");
Components\Controls\StructuredLogDetails.razor.cs (1)
158await JS.InvokeVoidAsync("scrollToTop", ".property-grid-container");
Components\Dialogs\DashboardRunsDialog.razor.cs (1)
56await JS.InvokeVoidAsync("focusElement", id);
Components\Dialogs\GenAIVisualizerDialog.razor.cs (2)
153await JS.InvokeVoidAsync("scrollToElement", $"genai-message-{index}"); 166await JS.InvokeVoidAsync("scrollToElement", toolDefinition.ElementId);
Components\Dialogs\SettingsDialog.razor.cs (1)
179await JS.InvokeVoidAsync(
Components\Layout\MainLayout.razor.cs (2)
346await JS.InvokeVoidAsync("focusElement", elementId); 686await JS.InvokeVoidAsync("window.unregisterGlobalKeydownListener", keyboardHandlers);
Components\Layout\MobileNavMenu.razor.cs (4)
108await JS.InvokeVoidAsync("focusElement", MainLayout.NavigationButtonId); 131await JS.InvokeVoidAsync("disposeMobileNavMenuKeyboardNavigation", keyboardNavigation); 162await JS.InvokeVoidAsync("open", ["https://aka.ms/aspire/repo", "_blank"]); 177await JS.InvokeVoidAsync("open", [MainLayout.DashboardDocumentationUrl, "_blank", "noopener,noreferrer"]);
Components\Layout\ResourceServiceConnectionProvider.cs (4)
38await JS.InvokeVoidAsync("registerResourceServiceConnectionProvider", _dotNetRef); 74await JS.InvokeVoidAsync("updateResourceServiceConnectionState", "connected", false); 79await JS.InvokeVoidAsync("updateResourceServiceConnectionState", "unsupported", false, DashboardClient.ApplicationName, DashboardClient.MinRequiredVersion); 85await JS.InvokeVoidAsync("updateResourceServiceConnectionState", "disconnected", showRetry);
Components\Legacy\Dialogs\LegacySettingsDialog.razor.cs (1)
94await JS.InvokeVoidAsync("setDashboardExperience", "modern", "/");
Components\Legacy\Layout\LegacyMainLayout.razor.cs (2)
297await JS.InvokeVoidAsync("focusElement", elementId); 595await JS.InvokeVoidAsync("window.unregisterGlobalKeydownListener", keyboardHandlers);
Components\Legacy\Layout\LegacyMobileNavMenu.razor.cs (3)
105await JS.InvokeVoidAsync("focusElement", LegacyMainLayout.NavigationButtonId); 128await JS.InvokeVoidAsync("disposeMobileNavMenuKeyboardNavigation", keyboardNavigation); 200await JS.InvokeVoidAsync("open", ["https://aka.ms/aspire/repo", "_blank"]);
Components\Legacy\Pages\Resources.razor.cs (2)
377await JS.InvokeVoidAsync("focusElement", initialFocusElementId, true); 383await JS.InvokeVoidAsync("focusElement", pendingFocusElementId);
Components\Legacy\Pages\TraceDetail.razor.cs (2)
258await JS.InvokeVoidAsync("focusElement", ScrollContainerId, true); 264await JS.InvokeVoidAsync("focusElement", pendingFocusElementId);
Components\Pages\Resources.razor.cs (2)
378await JS.InvokeVoidAsync("focusElement", initialFocusElementId, true); 384await JS.InvokeVoidAsync("focusElement", pendingFocusElementId);
Components\Pages\TraceDetail.razor.cs (2)
267await JS.InvokeVoidAsync("focusElement", ScrollContainerId, true); 273await JS.InvokeVoidAsync("focusElement", pendingFocusElementId);
Components\Resize\BrowserDimensionWatcher.cs (1)
36await JS.InvokeVoidAsync("window.listenToWindowResize", DotNetObjectReference.Create(this));
Extensions\JSInteropExtensions.cs (1)
46await js.InvokeVoidAsync("downloadStreamAsFile", fileName, streamReference).ConfigureAwait(false);
Model\BrowserStorage\LocalBrowserStorage.cs (1)
64=> _jsRuntime.InvokeVoidAsync("localStorage.setItem", key, json);
Microsoft.AspNetCore.Components.Server (8)
Circuits\RemoteErrorBoundaryLogger.cs (1)
37return _jsRuntime.InvokeVoidAsync("console.error", message);
Circuits\RemoteJSDataStream.cs (1)
54await runtime.InvokeVoidAsync("Blazor._internal.sendJSDataStream", jsStreamReference, streamId, chunkSize);
Circuits\RemoteNavigationManager.cs (3)
136await _jsRuntime.InvokeVoidAsync(Interop.NavigateTo, uri, options); 178await _jsRuntime.InvokeVoidAsync(Interop.Refresh, forceReload); 209await _jsRuntime.InvokeVoidAsync(Interop.SetHasLocationChangingListeners, (int)WebRendererId.Server, value);
Circuits\RemoteScrollToLocationHash.cs (1)
44await _jsRuntime.InvokeVoidAsync(Interop.ScrollToElement, elementId);
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (2)
132=> _jsRuntime.InvokeVoidAsync($"{_storeName}.removeItem", key); 153=> _jsRuntime.InvokeVoidAsync($"{_storeName}.setItem", key, protectedJson);
Microsoft.AspNetCore.Components.Web (9)
ElementReferenceExtensions.cs (1)
41return jsRuntime.InvokeVoidAsync(DomWrapperInterop.Focus, elementReference, preventScroll);
Forms\InputFile.cs (1)
53await JSRuntime.InvokeVoidAsync(InputFileInterop.Init, _jsCallbacksRelay.DotNetReference, _inputFileElement);
Routing\FocusOnNavigate.cs (1)
80await JSRuntime.InvokeVoidAsync(DomWrapperInterop.FocusBySelector, Selector);
Routing\NavigationLock.cs (3)
90await JSRuntime.InvokeVoidAsync(NavigationLockInterop.EnableNavigationPrompt, _id); 94await JSRuntime.InvokeVoidAsync(NavigationLockInterop.DisableNavigationPrompt, _id); 112await JSRuntime.InvokeVoidAsync(NavigationLockInterop.DisableNavigationPrompt, _id);
Virtualization\VirtualizeJsInterop.cs (2)
110await _jsRuntime.InvokeVoidAsync($"{JsFunctionsPrefix}.dispose", _selfReference); 132await _jsRuntime.InvokeVoidAsync(identifier, args);
WebRenderer.cs (1)
143jsRuntime.InvokeVoidAsync(JSMethodIdentifier, args).Preserve();
Microsoft.AspNetCore.Components.WebAssembly (3)
src\aspnetcore\src\Components\Shared\src\TransmitDataStreamToJS.cs (3)
24await runtime.InvokeVoidAsync(methodIdentifier, streamId, buffer, bytesRead, null); 28await runtime.InvokeVoidAsync(methodIdentifier, streamId, Array.Empty<byte>(), 0, null); 35await runtime.InvokeVoidAsync(methodIdentifier, streamId, Array.Empty<byte>(), 0, ex.Message);
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Services\RemoteAuthenticationService.cs (1)
213await JsRuntime.InvokeVoidAsync("AuthenticationService.init", Options.ProviderOptions, _loggingOptions);
Microsoft.AspNetCore.Components.WebView (4)
Services\WebViewScrollToLocationHash.cs (1)
38await _jsRuntime.InvokeVoidAsync("Blazor._internal.navigationManager.scrollToElement", elementId).AsTask();
src\aspnetcore\src\Components\Shared\src\TransmitDataStreamToJS.cs (3)
24await runtime.InvokeVoidAsync(methodIdentifier, streamId, buffer, bytesRead, null); 28await runtime.InvokeVoidAsync(methodIdentifier, streamId, Array.Empty<byte>(), 0, null); 35await runtime.InvokeVoidAsync(methodIdentifier, streamId, Array.Empty<byte>(), 0, ex.Message);
Microsoft.JSInterop (1)
Implementation\JSObjectReference.cs (1)
109await _jsRuntime.InvokeVoidAsync("DotNet.disposeJSObjectReferenceById", Id);