54 references to InvokeVoidAsync
Aspire.Dashboard (23)
Components\Controls\AspireMenu.razor.cs (1)
155
await JS.
InvokeVoidAsync
("focusElement", Anchor);
Components\Controls\GridValue.razor.cs (1)
144
await JS.
InvokeVoidAsync
("setCellTextClickHandler", _cellTextId);
Components\Controls\ResourceDetails.razor.cs (1)
252
await JS.
InvokeVoidAsync
("scrollToTop", ".property-grid-container");
Components\Controls\SpanDetails.razor.cs (1)
198
await JS.
InvokeVoidAsync
("scrollToTop", ".property-grid-container");
Components\Controls\StructuredLogDetails.razor.cs (1)
147
await JS.
InvokeVoidAsync
("scrollToTop", ".property-grid-container");
Components\Dialogs\GenAIVisualizerDialog.razor.cs (2)
154
await JS.
InvokeVoidAsync
("scrollToElement", $"genai-message-{index}");
167
await JS.
InvokeVoidAsync
("scrollToElement", toolDefinition.ElementId);
Components\Layout\MainLayout.razor.cs (2)
250
await JS.
InvokeVoidAsync
("focusElement", elementId);
524
await JS.
InvokeVoidAsync
("window.unregisterGlobalKeydownListener", h);
Components\Layout\MobileNavMenu.razor.cs (3)
84
await JS.
InvokeVoidAsync
("focusElement", MainLayout.NavigationButtonId);
107
await JS.
InvokeVoidAsync
("disposeMobileNavMenuKeyboardNavigation", keyboardNavigation);
167
await JS.
InvokeVoidAsync
("open", ["https://aka.ms/aspire/repo", "_blank"]);
Components\Layout\ResourceServiceConnectionProvider.cs (4)
38
await JS.
InvokeVoidAsync
("registerResourceServiceConnectionProvider", _dotNetRef);
70
await JS.
InvokeVoidAsync
("updateResourceServiceConnectionState", "connected", false);
75
await JS.
InvokeVoidAsync
("updateResourceServiceConnectionState", "unsupported", false, DashboardClient.ApplicationName, DashboardClient.MinRequiredVersion);
81
await JS.
InvokeVoidAsync
("updateResourceServiceConnectionState", "disconnected", showRetry);
Components\Pages\Resources.razor.cs (2)
376
await JS.
InvokeVoidAsync
("focusElement", initialFocusElementId, true);
382
await JS.
InvokeVoidAsync
("focusElement", pendingFocusElementId);
Components\Pages\TraceDetail.razor.cs (2)
235
await JS.
InvokeVoidAsync
("focusElement", ScrollContainerId, true);
241
await JS.
InvokeVoidAsync
("focusElement", pendingFocusElementId);
Components\Resize\BrowserDimensionWatcher.cs (1)
36
await JS.
InvokeVoidAsync
("window.listenToWindowResize", DotNetObjectReference.Create(this));
Extensions\JSInteropExtensions.cs (1)
46
await 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)
37
return _jsRuntime.
InvokeVoidAsync
("console.error", message);
Circuits\RemoteJSDataStream.cs (1)
54
await runtime.
InvokeVoidAsync
("Blazor._internal.sendJSDataStream", jsStreamReference, streamId, chunkSize);
Circuits\RemoteNavigationManager.cs (3)
136
await _jsRuntime.
InvokeVoidAsync
(Interop.NavigateTo, uri, options);
178
await _jsRuntime.
InvokeVoidAsync
(Interop.Refresh, forceReload);
209
await _jsRuntime.
InvokeVoidAsync
(Interop.SetHasLocationChangingListeners, (int)WebRendererId.Server, value);
Circuits\RemoteScrollToLocationHash.cs (1)
44
await _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)
41
return jsRuntime.
InvokeVoidAsync
(DomWrapperInterop.Focus, elementReference, preventScroll);
Forms\InputFile.cs (1)
53
await JSRuntime.
InvokeVoidAsync
(InputFileInterop.Init, _jsCallbacksRelay.DotNetReference, _inputFileElement);
Routing\FocusOnNavigate.cs (1)
80
await JSRuntime.
InvokeVoidAsync
(DomWrapperInterop.FocusBySelector, Selector);
Routing\NavigationLock.cs (3)
90
await JSRuntime.
InvokeVoidAsync
(NavigationLockInterop.EnableNavigationPrompt, _id);
94
await JSRuntime.
InvokeVoidAsync
(NavigationLockInterop.DisableNavigationPrompt, _id);
112
await JSRuntime.
InvokeVoidAsync
(NavigationLockInterop.DisableNavigationPrompt, _id);
Virtualization\VirtualizeJsInterop.cs (7)
30
await _jsRuntime.
InvokeVoidAsync
($"{JsFunctionsPrefix}.init", _selfReference, spacerBefore, spacerAfter, anchorMode);
47
return _jsRuntime.
InvokeVoidAsync
($"{JsFunctionsPrefix}.scrollToBottom", _selfReference);
52
return _jsRuntime.
InvokeVoidAsync
($"{JsFunctionsPrefix}.refreshObservers", _selfReference, isLoading);
57
return _jsRuntime.
InvokeVoidAsync
($"{JsFunctionsPrefix}.setAnchorMode", _selfReference, anchorMode);
62
return _jsRuntime.
InvokeVoidAsync
($"{JsFunctionsPrefix}.restoreAnchor", _selfReference);
72
return _jsRuntime.
InvokeVoidAsync
($"{JsFunctionsPrefix}.beginProgrammaticScroll", _selfReference);
86
await _jsRuntime.
InvokeVoidAsync
($"{JsFunctionsPrefix}.dispose", _selfReference);
WebRenderer.cs (1)
143
jsRuntime.
InvokeVoidAsync
(JSMethodIdentifier, args).Preserve();
Microsoft.AspNetCore.Components.WebAssembly (3)
src\aspnetcore\src\Components\Shared\src\TransmitDataStreamToJS.cs (3)
24
await runtime.
InvokeVoidAsync
(methodIdentifier, streamId, buffer, bytesRead, null);
28
await runtime.
InvokeVoidAsync
(methodIdentifier, streamId, Array.Empty<byte>(), 0, null);
35
await runtime.
InvokeVoidAsync
(methodIdentifier, streamId, Array.Empty<byte>(), 0, ex.Message);
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Services\RemoteAuthenticationService.cs (1)
213
await JsRuntime.
InvokeVoidAsync
("AuthenticationService.init", Options.ProviderOptions, _loggingOptions);
Microsoft.AspNetCore.Components.WebView (4)
Services\WebViewScrollToLocationHash.cs (1)
38
await _jsRuntime.
InvokeVoidAsync
("Blazor._internal.navigationManager.scrollToElement", elementId).AsTask();
src\aspnetcore\src\Components\Shared\src\TransmitDataStreamToJS.cs (3)
24
await runtime.
InvokeVoidAsync
(methodIdentifier, streamId, buffer, bytesRead, null);
28
await runtime.
InvokeVoidAsync
(methodIdentifier, streamId, Array.Empty<byte>(), 0, null);
35
await runtime.
InvokeVoidAsync
(methodIdentifier, streamId, Array.Empty<byte>(), 0, ex.Message);
Microsoft.JSInterop (1)
Implementation\JSObjectReference.cs (1)
109
await _jsRuntime.
InvokeVoidAsync
("DotNet.disposeJSObjectReferenceById", Id);