17 references to EndInvokeJS
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitHost.cs (1)
423
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)
273
DotNetDispatcher.
EndInvokeJS
(jsRuntime, argsJson);
294
DotNetDispatcher.
EndInvokeJS
(jsRuntime, argsJson);
310
DotNetDispatcher.
EndInvokeJS
(jsRuntime, argsJson);
331
DotNetDispatcher.
EndInvokeJS
(jsRuntime, argsJson);
346
Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.
EndInvokeJS
(jsRuntime, ""));
357
Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.
EndInvokeJS
(jsRuntime, $"{{\"key\": \"{jsRuntime.LastInvocationAsyncHandle}\"}}"));
368
Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.
EndInvokeJS
(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false"));
379
Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.
EndInvokeJS
(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false, \"Hello\", 5]"));
394
DotNetDispatcher.
EndInvokeJS
(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, false, \"Hello\", 5]");
409
DotNetDispatcher.
EndInvokeJS
(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, true, {{\"intVal\": 7}}]");
424
DotNetDispatcher.
EndInvokeJS
(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, true, [1, 2, 3]]");
438
DotNetDispatcher.
EndInvokeJS
(jsRuntime, $"[{jsRuntime.LastInvocationAsyncHandle}, true, null]");