39 references to InvokeAsync
Aspire.Dashboard (21)
Components\Controls\Chart\MetricTable.razor.cs (1)
256_jsModule = await JS.InvokeAsync<IJSObjectReference>("import", $"/{Assets["Components/Controls/Chart/MetricTable.razor.js"]}");
Components\Controls\Chart\PlotlyChart.razor.cs (1)
190_jsModule = await JS.InvokeAsync<IJSObjectReference>("import", $"/{Assets["js/app-metrics.js"]}");
Components\Controls\IconCheckbox.razor.cs (1)
104_jsModule = await JS.InvokeAsync<IJSObjectReference>("import", $"./{Assets[JsModulePath]}");
Components\Controls\MarkdownRenderer.razor.cs (1)
47_jsModule = await JS.InvokeAsync<IJSObjectReference>("import", $"/{Assets["Components/Controls/MarkdownRenderer.razor.js"]}");
Components\Controls\TerminalTitle.razor.cs (1)
63_jsModule = await JS.InvokeAsync<IJSObjectReference>("import", $"./{Assets["Components/Controls/TerminalTitle.razor.js"]}");
Components\Controls\TerminalView.razor.cs (1)
215_jsModule ??= await JS.InvokeAsync<IJSObjectReference>("import", moduleUri.PathAndQuery);
Components\Controls\TextVisualizer.razor.cs (1)
58_jsModule = await JS.InvokeAsync<IJSObjectReference>("import", $"/{Assets["Components/Controls/TextVisualizer.razor.js"]}");
Components\Dialogs\FilterDialog.razor.cs (1)
412_jsModule ??= await JS.InvokeAsync<IJSObjectReference>("import", $"./{Assets["Components/Dialogs/FilterDialog.razor.js"]}");
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
89_jsModule = await JS.InvokeAsync<IJSObjectReference>("import", $"./{Assets["Components/Dialogs/InteractionsInputDialog.razor.js"]}");
Components\Layout\MainLayout.razor.cs (3)
166var result = await JS.InvokeAsync<BrowserInfo>("window.getBrowserInfo"); 276_jsModule = await JS.InvokeAsync<IJSObjectReference>("import", $"/{Assets["js/app-theme.js"]}"); 281_keyboardHandlers = await JS.InvokeAsync<IJSObjectReference>("window.registerGlobalKeydownListener", _shortcutManagerReference);
Components\Layout\MobileNavMenu.razor.cs (1)
73var keyboardNavigation = await JS.InvokeAsync<IJSObjectReference>("initializeMobileNavMenuKeyboardNavigation", _mobileNavMenuReference, MobileNavMenuId);
Components\Layout\TerminalDock.razor.cs (1)
176_jsModule = await JS.InvokeAsync<IJSObjectReference>(
Components\Pages\Login.razor.cs (1)
72_jsModule = await JS.InvokeAsync<IJSObjectReference>("import", $"/{Assets["Components/Pages/Login.razor.js"]}");
Components\Pages\Resources.razor.cs (1)
391_jsModule = await JS.InvokeAsync<IJSObjectReference>("import", $"/{Assets["js/app-resourcegraph.js"]}");
Components\Pages\TerminalWindow.razor.cs (1)
167_windowModule ??= await JS.InvokeAsync<IJSObjectReference>("import", moduleUri.PathAndQuery);
Components\Resize\BrowserDimensionWatcher.cs (1)
29var viewportSize = await JS.InvokeAsync<ViewportSize>("window.getWindowDimensions");
Model\BrowserStorage\LocalBrowserStorage.cs (1)
45var json = await _jsRuntime.InvokeAsync<string?>("localStorage.getItem", key).ConfigureAwait(false);
Model\TerminalWindowLauncher.cs (1)
118_module = await _js.InvokeAsync<IJSObjectReference>("import", moduleUri.PathAndQuery).ConfigureAwait(false);
Model\ThemeManager.cs (1)
27_jsModule = await _jsRuntime.InvokeAsync<IJSObjectReference>("import", "/js/app-theme.js").ConfigureAwait(false);
Microsoft.AspNetCore.Components.Endpoints (1)
src\aspnetcore\src\Components\Shared\src\ResourceCollectionProvider.cs (1)
57var module = await _jsRuntime.InvokeAsync<IJSObjectReference>("import", _url);
Microsoft.AspNetCore.Components.QuickGrid (1)
QuickGrid.razor.cs (1)
314_jsModule = await JS.InvokeAsync<IJSObjectReference>("import", "./_content/Microsoft.AspNetCore.Components.QuickGrid/QuickGrid.razor.js");
Microsoft.AspNetCore.Components.Server (2)
Circuits\RemoteNavigationInterception.cs (1)
38await _jsRuntime.InvokeAsync<object>(Interop.EnableNavigationInterception, (int)WebRendererId.Server);
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (1)
156=> _jsRuntime.InvokeAsync<string?>($"{_storeName}.getItem", key);
Microsoft.AspNetCore.Components.Web (2)
Forms\InputFile.cs (1)
77var imageFile = await JSRuntime.InvokeAsync<BrowserFile>(InputFileInterop.ToImageFile, _inputFileElement, file.Id, format, maxWidth, maxHeight);
Head\HeadOutlet.cs (1)
31_defaultTitle = await JSRuntime.InvokeAsync<string>(GetAndRemoveExistingTitle);
Microsoft.AspNetCore.Components.WebAssembly (2)
src\aspnetcore\src\Components\Shared\src\PullFromJSDataStream.cs (1)
100var bytesRead = await _runtime.InvokeAsync<byte[]>("Blazor._internal.getJSDataStreamChunk", _jsStreamReference, _offset, numBytesToRead);
src\aspnetcore\src\Components\Shared\src\ResourceCollectionProvider.cs (1)
57var module = await _jsRuntime.InvokeAsync<IJSObjectReference>("import", _url);
Microsoft.AspNetCore.Components.WebAssembly.Authentication (6)
Services\RemoteAuthenticationService.cs (6)
105var result = await JsRuntime.InvokeAsync<RemoteAuthenticationResult<TRemoteAuthenticationState>>("AuthenticationService.completeSignIn", context.Url); 127var result = await JsRuntime.InvokeAsync<RemoteAuthenticationResult<TRemoteAuthenticationState>>("AuthenticationService.completeSignOut", context.Url); 137var result = await JsRuntime.InvokeAsync<InternalAccessTokenResult>("AuthenticationService.getAccessToken"); 159var result = await JsRuntime.InvokeAsync<InternalAccessTokenResult>("AuthenticationService.getAccessToken", options); 176string identifier, TContext context) => JsRuntime.InvokeAsync<TResult>(identifier, context); 202var account = await JsRuntime.InvokeAsync<TAccount>("AuthenticationService.getUser");
Microsoft.AspNetCore.Components.WebView (1)
src\aspnetcore\src\Components\Shared\src\PullFromJSDataStream.cs (1)
100var bytesRead = await _runtime.InvokeAsync<byte[]>("Blazor._internal.getJSDataStreamChunk", _jsStreamReference, _offset, numBytesToRead);
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
154 await using var module = await JSRuntime.InvokeAsync<IJSObjectReference>("import", "./_framework/static-content-hot-reload.js");
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
154 await using var module = await JSRuntime.InvokeAsync<IJSObjectReference>("import", "./_framework/static-content-hot-reload.js");
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
154 await using var module = await JSRuntime.InvokeAsync<IJSObjectReference>("import", "./_framework/static-content-hot-reload.js");