38 references to InvokeVoidAsync
Aspire.Dashboard (11)
Components\Controls\GridValue.razor.cs (1)
142
await JS.
InvokeVoidAsync
("setCellTextClickHandler", _cellTextId);
Components\Controls\ResourceDetails.razor.cs (1)
156
await JS.
InvokeVoidAsync
("scrollToTop", ".property-grid-container");
Components\Controls\SpanDetails.razor.cs (1)
118
await JS.
InvokeVoidAsync
("scrollToTop", ".property-grid-container");
Components\Controls\StructuredLogDetails.razor.cs (1)
97
await JS.
InvokeVoidAsync
("scrollToTop", ".property-grid-container");
Components\Layout\MainLayout.razor.cs (1)
294
await JS.
InvokeVoidAsync
("window.unregisterGlobalKeydownListener", h);
Components\Layout\MobileNavMenu.razor.cs (1)
79
await JS.
InvokeVoidAsync
("open", ["https://aka.ms/dotnet/aspire/repo", "_blank"]);
Components\Pages\ConsoleLogs.razor.cs (1)
641
await JS.
InvokeVoidAsync
("downloadStreamAsFile", fileName, streamReference);
Components\Pages\Resources.razor.cs (1)
614
await JS.
InvokeVoidAsync
("focusElement", _elementIdBeforeDetailsViewOpened);
Components\Pages\TraceDetail.razor.cs (1)
330
await JS.
InvokeVoidAsync
("focusElement", _elementIdBeforeDetailsViewOpened);
Components\Resize\BrowserDimensionWatcher.cs (1)
36
await JS.
InvokeVoidAsync
("window.listenToWindowResize", DotNetObjectReference.Create(this));
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, WebRendererId.Server, value);
Circuits\RemoteScrollToLocationHash.cs (1)
44
await _jsRuntime.
InvokeVoidAsync
(Interop.ScrollToElement, elementId);
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (2)
121
=> _jsRuntime.
InvokeVoidAsync
($"{_storeName}.removeItem", key);
140
=> _jsRuntime.
InvokeVoidAsync
($"{_storeName}.setItem", key, protectedJson);
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\CircuitHostTest.cs (1)
836
await _js.
InvokeVoidAsync
("SomeJsCleanupCode");
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)
30
await _jsRuntime.
InvokeVoidAsync
($"{JsFunctionsPrefix}.init", _selfReference, spacerBefore, spacerAfter);
51
await _jsRuntime.
InvokeVoidAsync
($"{JsFunctionsPrefix}.dispose", _selfReference);
WebRenderer.cs (1)
137
jsRuntime.
InvokeVoidAsync
(JSMethodIdentifier, args).Preserve();
Microsoft.AspNetCore.Components.WebAssembly (3)
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.WebView (4)
Services\WebViewScrollToLocationHash.cs (1)
38
await _jsRuntime.
InvokeVoidAsync
("Blazor._internal.navigationManager.scrollToElement", elementId).AsTask();
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)
107
await _jsRuntime.
InvokeVoidAsync
("DotNet.disposeJSObjectReferenceById", Id);
Microsoft.JSInterop.Tests (1)
JSRuntimeExtensionsTest.cs (1)
68
await jsRuntime.Object.
InvokeVoidAsync
(method, args);