2 writes to LastInvocationAsyncHandle
Microsoft.JSInterop.Tests (2)
Infrastructure\DotNetDispatcherTest.cs (2)
1039
LastInvocationAsyncHandle
= asyncHandle;
1048
LastInvocationAsyncHandle
= default;
11 references to LastInvocationAsyncHandle
Microsoft.JSInterop.Tests (11)
Infrastructure\DotNetDispatcherTest.cs (11)
269
var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.
LastInvocationAsyncHandle
, true, testDTO }, jsRuntime.JsonSerializerOptions);
290
var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.
LastInvocationAsyncHandle
, false, expected }, jsRuntime.JsonSerializerOptions);
306
var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.
LastInvocationAsyncHandle
, false, null }, jsRuntime.JsonSerializerOptions);
323
var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.
LastInvocationAsyncHandle
, true, testDTO }, jsRuntime.JsonSerializerOptions);
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]");