54 references to InvokeVoidAsync
Aspire.Dashboard (23)
Components\Controls\AspireMenu.razor.cs (1)
155await JS.InvokeVoidAsync("focusElement", Anchor);
Components\Controls\GridValue.razor.cs (1)
144await JS.InvokeVoidAsync("setCellTextClickHandler", _cellTextId);
Components\Controls\ResourceDetails.razor.cs (1)
252await JS.InvokeVoidAsync("scrollToTop", ".property-grid-container");
Components\Controls\SpanDetails.razor.cs (1)
198await JS.InvokeVoidAsync("scrollToTop", ".property-grid-container");
Components\Controls\StructuredLogDetails.razor.cs (1)
147await JS.InvokeVoidAsync("scrollToTop", ".property-grid-container");
Components\Dialogs\GenAIVisualizerDialog.razor.cs (2)
154await JS.InvokeVoidAsync("scrollToElement", $"genai-message-{index}"); 167await JS.InvokeVoidAsync("scrollToElement", toolDefinition.ElementId);
Components\Layout\MainLayout.razor.cs (2)
250await JS.InvokeVoidAsync("focusElement", elementId); 524await JS.InvokeVoidAsync("window.unregisterGlobalKeydownListener", h);
Components\Layout\MobileNavMenu.razor.cs (3)
84await JS.InvokeVoidAsync("focusElement", MainLayout.NavigationButtonId); 107await JS.InvokeVoidAsync("disposeMobileNavMenuKeyboardNavigation", keyboardNavigation); 167await JS.InvokeVoidAsync("open", ["https://aka.ms/aspire/repo", "_blank"]);
Components\Layout\ResourceServiceConnectionProvider.cs (4)
38await JS.InvokeVoidAsync("registerResourceServiceConnectionProvider", _dotNetRef); 70await JS.InvokeVoidAsync("updateResourceServiceConnectionState", "connected", false); 75await JS.InvokeVoidAsync("updateResourceServiceConnectionState", "unsupported", false, DashboardClient.ApplicationName, DashboardClient.MinRequiredVersion); 81await JS.InvokeVoidAsync("updateResourceServiceConnectionState", "disconnected", showRetry);
Components\Pages\Resources.razor.cs (2)
376await JS.InvokeVoidAsync("focusElement", initialFocusElementId, true); 382await JS.InvokeVoidAsync("focusElement", pendingFocusElementId);
Components\Pages\TraceDetail.razor.cs (2)
235await JS.InvokeVoidAsync("focusElement", ScrollContainerId, true); 241await 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)
54=> _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 (14)
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 (7)
30await _jsRuntime.InvokeVoidAsync($"{JsFunctionsPrefix}.init", _selfReference, spacerBefore, spacerAfter, anchorMode); 47return _jsRuntime.InvokeVoidAsync($"{JsFunctionsPrefix}.scrollToBottom", _selfReference); 52return _jsRuntime.InvokeVoidAsync($"{JsFunctionsPrefix}.refreshObservers", _selfReference, isLoading); 57return _jsRuntime.InvokeVoidAsync($"{JsFunctionsPrefix}.setAnchorMode", _selfReference, anchorMode); 62return _jsRuntime.InvokeVoidAsync($"{JsFunctionsPrefix}.restoreAnchor", _selfReference); 72return _jsRuntime.InvokeVoidAsync($"{JsFunctionsPrefix}.beginProgrammaticScroll", _selfReference); 86await _jsRuntime.InvokeVoidAsync($"{JsFunctionsPrefix}.dispose", _selfReference);
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);