38 references to DotNetInvocationInfo
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitHost.cs (1)
388
var invocationInfo = new
DotNetInvocationInfo
(assemblyName, methodIdentifier, dotNetObjectId, callId);
Microsoft.AspNetCore.Components.WebAssembly (2)
Services\DefaultWebAssemblyJSRuntime.cs (2)
50
var callInfo = new
DotNetInvocationInfo
(assemblyName, methodIdentifier, dotNetObjectId, callId: null);
86
var callInfo = new
DotNetInvocationInfo
(assemblyName, methodIdentifier, dotNetObjectId, callId);
Microsoft.AspNetCore.Components.WebView (1)
IpcReceiver.cs (1)
79
new
DotNetInvocationInfo
(assemblyName, methodIdentifier, dotNetObjectId, callId),
Microsoft.JSInterop.Tests (34)
Infrastructure\DotNetDispatcherTest.cs (33)
22
() => DotNetDispatcher.Invoke(new TestJSRuntime(), new
DotNetInvocationInfo
(assemblyName, "SomeMethod", default, default), "[]"),
34
() => DotNetDispatcher.Invoke(new TestJSRuntime(), new
DotNetInvocationInfo
("SomeAssembly", methodIdentifier, default, default), "[]"),
45
DotNetDispatcher.Invoke(new TestJSRuntime(), new
DotNetInvocationInfo
(assemblyName, "SomeMethod", default, default), null);
67
DotNetDispatcher.Invoke(new TestJSRuntime(), new
DotNetInvocationInfo
(thisAssemblyName, methodIdentifier, default, default), null);
79
var resultJson = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, "InvocableStaticVoid", default, default), null);
91
var resultJson = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, "InvocableStaticNonVoid", default, default), null);
104
var resultJson = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, nameof(SomePublicType.InvokableMethodWithoutCustomIdentifier), default, default), null);
130
var resultJson = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, "InvocableStaticWithParams", default, default), argsJson);
171
DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, method, default, default), argsJson));
185
var resultJson = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(null, "InvokableInstanceVoid", 1, default), null);
202
var resultJson = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(null, "BaseClassInvokableInstanceVoid", 1, default), null);
219
DotNetDispatcher.BeginInvokeDotNet(jsRuntime, new
DotNetInvocationInfo
(null, "__Dispose", objectRef.ObjectId, default), null);
240
() => DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(null, "InvokableInstanceVoid", 1, default), null));
259
() => DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(null, "InvokableInstanceVoid", 1, default), null));
459
var resultJson = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(null, "InvokableInstanceMethod", 1, default), argsJson);
478
var resultJson = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(null, nameof(GenericType<int>.EchoStringParameter), 1, default), argsJson);
494
var resultJson = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(null, nameof(GenericType<string>.EchoParameter), 1, default), argsJson);
510
var resultJson = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(null, "MultipleJSInvokableAttributesInstance", 1, default), argsJson);
511
var resultJson2 = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(null, "Alias", 1, default), argsJson);
522
var resultJson = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, "InvocableStaticNonVoidAlias1", default, default), null);
525
var resultJson2 = DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, "InvocableStaticNonVoidAlias2", default, default), null);
543
var ex = Assert.Throws<ArgumentException>(() => DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, methodIdentifier, 0, default), "[7]"));
558
var ex = Assert.Throws<ArgumentException>(() => DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(null, methodIdentifier, 1, default), argsJson));
573
DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(null, nameof(GenericType<int>.EchoParameter), 1, default), argsJson));
590
DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, "InvocableStaticWithParams", default, default), argsJson);
613
DotNetDispatcher.Invoke(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, "InvocableStaticWithParams", default, default), argsJson);
640
DotNetDispatcher.BeginInvokeDotNet(jsRuntime, new
DotNetInvocationInfo
(null, "InvokableAsyncMethod", 1, callId), argsJson);
679
DotNetDispatcher.BeginInvokeDotNet(jsRuntime, new
DotNetInvocationInfo
(null,
703
DotNetDispatcher.BeginInvokeDotNet(jsRuntime, new
DotNetInvocationInfo
(null,
721
DotNetDispatcher.BeginInvokeDotNet(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, nameof(ThrowingClass.ThrowingMethod), default, callId), default);
743
DotNetDispatcher.BeginInvokeDotNet(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, nameof(ThrowingClass.AsyncThrowingMethod), default, callId), default);
763
DotNetDispatcher.BeginInvokeDotNet(jsRuntime, new
DotNetInvocationInfo
(thisAssemblyName, "InvocableStaticWithParams", default, callId), "<xml>not json</xml>");
781
DotNetDispatcher.BeginInvokeDotNet(jsRuntime, new
DotNetInvocationInfo
(null, "InvokableInstanceVoid", 1, callId), null);
JSRuntimeTest.cs (1)
303
var invocation = new
DotNetInvocationInfo
("TestAssembly", "TestMethod", 0, "0");