22 references to Invoke
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\DefaultWebAssemblyJSRuntime.cs (1)
51
return DotNetDispatcher.
Invoke
(Instance, callInfo, argsJson);
Microsoft.JSInterop.Tests (21)
Infrastructure\DotNetDispatcherTest.cs (21)
21
() => DotNetDispatcher.
Invoke
(new TestJSRuntime(), new DotNetInvocationInfo(assemblyName, "SomeMethod", default, default), "[]"),
33
() => DotNetDispatcher.
Invoke
(new TestJSRuntime(), new DotNetInvocationInfo("SomeAssembly", methodIdentifier, default, default), "[]"),
44
DotNetDispatcher.
Invoke
(new TestJSRuntime(), new DotNetInvocationInfo(assemblyName, "SomeMethod", default, default), null);
66
DotNetDispatcher.
Invoke
(new TestJSRuntime(), new DotNetInvocationInfo(thisAssemblyName, methodIdentifier, default, default), null);
78
var resultJson = DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(thisAssemblyName, "InvocableStaticVoid", default, default), null);
90
var resultJson = DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(thisAssemblyName, "InvocableStaticNonVoid", default, default), null);
103
var resultJson = DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(thisAssemblyName, nameof(SomePublicType.InvokableMethodWithoutCustomIdentifier), default, default), null);
129
var resultJson = DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(thisAssemblyName, "InvocableStaticWithParams", default, default), argsJson);
170
DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(thisAssemblyName, method, default, default), argsJson));
184
var resultJson = DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(null, "InvokableInstanceVoid", 1, default), null);
201
var resultJson = DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(null, "BaseClassInvokableInstanceVoid", 1, default), null);
239
() => DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(null, "InvokableInstanceVoid", 1, default), null));
258
() => DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(null, "InvokableInstanceVoid", 1, default), null));
458
var resultJson = DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(null, "InvokableInstanceMethod", 1, default), argsJson);
477
var resultJson = DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(null, nameof(GenericType<int>.EchoStringParameter), 1, default), argsJson);
493
var resultJson = DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(null, nameof(GenericType<string>.EchoParameter), 1, default), argsJson);
506
var ex = Assert.Throws<ArgumentException>(() => DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(thisAssemblyName, methodIdentifier, 0, default), "[7]"));
521
var ex = Assert.Throws<ArgumentException>(() => DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(null, methodIdentifier, 1, default), argsJson));
536
DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(null, nameof(GenericType<int>.EchoParameter), 1, default), argsJson));
553
DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(thisAssemblyName, "InvocableStaticWithParams", default, default), argsJson);
576
DotNetDispatcher.
Invoke
(jsRuntime, new DotNetInvocationInfo(thisAssemblyName, "InvocableStaticWithParams", default, default), argsJson);