28 references to InvokeAsync
Aspire.Dashboard (1)
Model\BrowserStorage\LocalBrowserStorage.cs (1)
59=> _jsRuntime.InvokeAsync<string?>("localStorage.getItem", key);
Microsoft.AspNetCore.Components.Endpoints (1)
src\Components\Shared\src\ResourceCollectionProvider.cs (1)
66var module = await _jsRuntime.InvokeAsync<IJSObjectReference>("import", _url);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
1713await JsRuntime.InvokeAsync<int>("window.alert", "Interop!");
Microsoft.AspNetCore.Components.QuickGrid (1)
QuickGrid.razor.cs (1)
203_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, WebRendererId.Server);
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (1)
143=> _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)
30_defaultTitle = await JSRuntime.InvokeAsync<string>(GetAndRemoveExistingTitle);
Microsoft.AspNetCore.Components.WebAssembly (2)
src\Components\Shared\src\PullFromJSDataStream.cs (1)
100var bytesRead = await _runtime.InvokeAsync<byte[]>("Blazor._internal.getJSDataStreamChunk", _jsStreamReference, _offset, numBytesToRead);
src\Components\Shared\src\ResourceCollectionProvider.cs (1)
66var module = await _jsRuntime.InvokeAsync<IJSObjectReference>("import", _url);
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\PullFromJSDataStream.cs (1)
100var bytesRead = await _runtime.InvokeAsync<byte[]>("Blazor._internal.getJSDataStreamChunk", _jsStreamReference, _offset, numBytesToRead);
Microsoft.JSInterop.Tests (16)
Infrastructure\DotNetDispatcherTest.cs (10)
268var task = jsRuntime.InvokeAsync<TestDTO>("unimportant"); 289var task = jsRuntime.InvokeAsync<TestDTO>("unimportant"); 305var task = jsRuntime.InvokeAsync<TestDTO>("unimportant"); 342var task = jsRuntime.InvokeAsync<TestDTO>("somemethod"); 353var task = jsRuntime.InvokeAsync<TestDTO>("somemethod"); 364var task = jsRuntime.InvokeAsync<TestDTO>("somemethod"); 375var task = jsRuntime.InvokeAsync<TestDTO>("somemethod"); 405var task = jsRuntime.InvokeAsync<TestDTO>("somemethod"); 421var task = jsRuntime.InvokeAsync<int[]>("somemethod"); 435var task = jsRuntime.InvokeAsync<TestDTO>("somemethod");
JSRuntimeExtensionsTest.cs (1)
27var result = await jsRuntime.Object.InvokeAsync<string>(method, "a", "b");
JSRuntimeTest.cs (5)
21runtime.InvokeAsync<object>("test identifier 1", "arg1", 123, true); 22runtime.InvokeAsync<object>("test identifier 2", "some other arg"); 47var task = runtime.InvokeAsync<object>("test identifier 1", "arg1", 123, true); 62var task = runtime.InvokeAsync<object>("test identifier 1", "arg1", 123, true); 273runtime.InvokeAsync<object>("test identifier",
TestContentPackage (1)
MyPrompt.cs (1)
12return jsRuntime.InvokeAsync<string>(