63 references to InvokeVoidAsync
Aspire.Dashboard (37)
Components\Controls\AspireMenu.razor.cs (2)
134
await JS.
InvokeVoidAsync
("focusElement", focusId);
180
await JS.
InvokeVoidAsync
("focusElement", Anchor);
Components\Controls\GridValue.razor.cs (1)
157
await JS.
InvokeVoidAsync
("setCellTextClickHandler", _cellTextId);
Components\Controls\ResourceDetails.razor.cs (1)
245
await JS.
InvokeVoidAsync
("scrollToTop", ".property-grid-container");
Components\Controls\SpanDetails.razor.cs (1)
192
await JS.
InvokeVoidAsync
("scrollToTop", ".property-grid-container");
Components\Controls\StructuredLogDetails.razor.cs (1)
158
await JS.
InvokeVoidAsync
("scrollToTop", ".property-grid-container");
Components\Dialogs\DashboardRunsDialog.razor.cs (1)
56
await JS.
InvokeVoidAsync
("focusElement", id);
Components\Dialogs\GenAIVisualizerDialog.razor.cs (2)
153
await JS.
InvokeVoidAsync
("scrollToElement", $"genai-message-{index}");
166
await JS.
InvokeVoidAsync
("scrollToElement", toolDefinition.ElementId);
Components\Dialogs\SettingsDialog.razor.cs (1)
179
await JS.
InvokeVoidAsync
(
Components\Layout\MainLayout.razor.cs (2)
346
await JS.
InvokeVoidAsync
("focusElement", elementId);
686
await JS.
InvokeVoidAsync
("window.unregisterGlobalKeydownListener", keyboardHandlers);
Components\Layout\MobileNavMenu.razor.cs (4)
108
await JS.
InvokeVoidAsync
("focusElement", MainLayout.NavigationButtonId);
131
await JS.
InvokeVoidAsync
("disposeMobileNavMenuKeyboardNavigation", keyboardNavigation);
162
await JS.
InvokeVoidAsync
("open", ["https://aka.ms/aspire/repo", "_blank"]);
177
await JS.
InvokeVoidAsync
("open", [MainLayout.DashboardDocumentationUrl, "_blank", "noopener,noreferrer"]);
Components\Layout\ResourceServiceConnectionProvider.cs (4)
38
await JS.
InvokeVoidAsync
("registerResourceServiceConnectionProvider", _dotNetRef);
74
await JS.
InvokeVoidAsync
("updateResourceServiceConnectionState", "connected", false);
79
await JS.
InvokeVoidAsync
("updateResourceServiceConnectionState", "unsupported", false, DashboardClient.ApplicationName, DashboardClient.MinRequiredVersion);
85
await JS.
InvokeVoidAsync
("updateResourceServiceConnectionState", "disconnected", showRetry);
Components\Legacy\Dialogs\LegacySettingsDialog.razor.cs (1)
94
await JS.
InvokeVoidAsync
("setDashboardExperience", "modern", "/");
Components\Legacy\Layout\LegacyMainLayout.razor.cs (2)
297
await JS.
InvokeVoidAsync
("focusElement", elementId);
595
await JS.
InvokeVoidAsync
("window.unregisterGlobalKeydownListener", keyboardHandlers);
Components\Legacy\Layout\LegacyMobileNavMenu.razor.cs (3)
105
await JS.
InvokeVoidAsync
("focusElement", LegacyMainLayout.NavigationButtonId);
128
await JS.
InvokeVoidAsync
("disposeMobileNavMenuKeyboardNavigation", keyboardNavigation);
200
await JS.
InvokeVoidAsync
("open", ["https://aka.ms/aspire/repo", "_blank"]);
Components\Legacy\Pages\Resources.razor.cs (2)
377
await JS.
InvokeVoidAsync
("focusElement", initialFocusElementId, true);
383
await JS.
InvokeVoidAsync
("focusElement", pendingFocusElementId);
Components\Legacy\Pages\TraceDetail.razor.cs (2)
258
await JS.
InvokeVoidAsync
("focusElement", ScrollContainerId, true);
264
await JS.
InvokeVoidAsync
("focusElement", pendingFocusElementId);
Components\Pages\Resources.razor.cs (2)
378
await JS.
InvokeVoidAsync
("focusElement", initialFocusElementId, true);
384
await JS.
InvokeVoidAsync
("focusElement", pendingFocusElementId);
Components\Pages\TraceDetail.razor.cs (2)
267
await JS.
InvokeVoidAsync
("focusElement", ScrollContainerId, true);
273
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)
64
=> _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 (9)
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 (2)
110
await _jsRuntime.
InvokeVoidAsync
($"{JsFunctionsPrefix}.dispose", _selfReference);
132
await _jsRuntime.
InvokeVoidAsync
(identifier, args);
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);