28 references to InvokeVoidAsync
Aspire.Dashboard (1)
Model\BrowserStorage\LocalBrowserStorage.cs (1)
56=> _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)
108await _jsRuntime.InvokeVoidAsync(Interop.NavigateTo, uri, options); 141await _jsRuntime.InvokeVoidAsync(Interop.Refresh, forceReload); 172await _jsRuntime.InvokeVoidAsync(Interop.SetHasLocationChangingListeners, WebRendererId.Server, value);
Circuits\RemoteScrollToLocationHash.cs (1)
44await _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)
836await _js.InvokeVoidAsync("SomeJsCleanupCode");
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)
30await _jsRuntime.InvokeVoidAsync($"{JsFunctionsPrefix}.init", _selfReference, spacerBefore, spacerAfter); 51await _jsRuntime.InvokeVoidAsync($"{JsFunctionsPrefix}.dispose", _selfReference);
WebRenderer.cs (1)
137jsRuntime.InvokeVoidAsync(JSMethodIdentifier, args).Preserve();
Microsoft.AspNetCore.Components.WebAssembly (3)
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.WebView (4)
Services\WebViewScrollToLocationHash.cs (1)
38await _jsRuntime.InvokeVoidAsync("Blazor._internal.navigationManager.scrollToElement", elementId).AsTask();
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)
58await _jsRuntime.InvokeVoidAsync("DotNet.disposeJSObjectReferenceById", Id);
Microsoft.JSInterop.Tests (1)
JSRuntimeExtensionsTest.cs (1)
68await jsRuntime.Object.InvokeVoidAsync(method, args);