38 references to InvokeVoidAsync
Aspire.Dashboard (11)
Components\Controls\GridValue.razor.cs (1)
142await JS.InvokeVoidAsync("setCellTextClickHandler", _cellTextId);
Components\Controls\ResourceDetails.razor.cs (1)
156await JS.InvokeVoidAsync("scrollToTop", ".property-grid-container");
Components\Controls\SpanDetails.razor.cs (1)
118await JS.InvokeVoidAsync("scrollToTop", ".property-grid-container");
Components\Controls\StructuredLogDetails.razor.cs (1)
97await JS.InvokeVoidAsync("scrollToTop", ".property-grid-container");
Components\Layout\MainLayout.razor.cs (1)
294await JS.InvokeVoidAsync("window.unregisterGlobalKeydownListener", h);
Components\Layout\MobileNavMenu.razor.cs (1)
79await JS.InvokeVoidAsync("open", ["https://aka.ms/dotnet/aspire/repo", "_blank"]);
Components\Pages\ConsoleLogs.razor.cs (1)
641await JS.InvokeVoidAsync("downloadStreamAsFile", fileName, streamReference);
Components\Pages\Resources.razor.cs (1)
614await JS.InvokeVoidAsync("focusElement", _elementIdBeforeDetailsViewOpened);
Components\Pages\TraceDetail.razor.cs (1)
330await JS.InvokeVoidAsync("focusElement", _elementIdBeforeDetailsViewOpened);
Components\Resize\BrowserDimensionWatcher.cs (1)
36await 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)
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, 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)
107await _jsRuntime.InvokeVoidAsync("DotNet.disposeJSObjectReferenceById", Id);
Microsoft.JSInterop.Tests (1)
JSRuntimeExtensionsTest.cs (1)
68await jsRuntime.Object.InvokeVoidAsync(method, args);