17 references to EndInvokeJS
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitHost.cs (1)
413DotNetDispatcher.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)
272DotNetDispatcher.EndInvokeJS(jsRuntime, argsJson); 293DotNetDispatcher.EndInvokeJS(jsRuntime, argsJson); 309DotNetDispatcher.EndInvokeJS(jsRuntime, argsJson); 330DotNetDispatcher.EndInvokeJS(jsRuntime, argsJson); 345Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, "")); 356Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"{{\"key\": \"{jsRuntime.LastInvocationAsyncHandle}\"}}")); 367Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false")); 378Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false, \"Hello\", 5]")); 393DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false, \"Hello\", 5]"); 408DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, true, {{\"intVal\": 7}}]"); 423DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, true, [1, 2, 3]]"); 437DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, true, null]");