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