17 references to EndInvokeJS
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitHost.cs (1)
423DotNetDispatcher.EndInvokeJS(JSRuntime, arguments);
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\DefaultWebAssemblyJSRuntime.cs (1)
62DotNetDispatcher.EndInvokeJS(Instance, argsJson);
Microsoft.AspNetCore.Components.WebView (1)
IpcReceiver.cs (1)
85DotNetDispatcher.EndInvokeJS(pageContext.JSRuntime, argumentsOrError);
Microsoft.JSInterop (2)
Infrastructure\DotNetDispatcher.cs (2)
292/// All exceptions from <see cref="EndInvokeJS"/> are caught 294/// the mechanism to call <see cref="EndInvokeJS"/> relies on
Microsoft.JSInterop.Tests (12)
Infrastructure\DotNetDispatcherTest.cs (12)
273DotNetDispatcher.EndInvokeJS(jsRuntime, argsJson); 294DotNetDispatcher.EndInvokeJS(jsRuntime, argsJson); 310DotNetDispatcher.EndInvokeJS(jsRuntime, argsJson); 331DotNetDispatcher.EndInvokeJS(jsRuntime, argsJson); 346Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, "")); 357Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"{{\"key\": \"{jsRuntime.LastInvocationAsyncHandle}\"}}")); 368Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false")); 379Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false, \"Hello\", 5]")); 394DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false, \"Hello\", 5]"); 409DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, true, {{\"intVal\": 7}}]"); 424DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, true, [1, 2, 3]]"); 438DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, true, null]");