2 writes to LastInvocationAsyncHandle
Microsoft.JSInterop.Tests (2)
Infrastructure\DotNetDispatcherTest.cs (2)
1031
LastInvocationAsyncHandle
= asyncHandle;
1040
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);
288
var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.
LastInvocationAsyncHandle
, false, expected }, jsRuntime.JsonSerializerOptions);
304
var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.
LastInvocationAsyncHandle
, false, null }, jsRuntime.JsonSerializerOptions);
321
var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.
LastInvocationAsyncHandle
, true, testDTO }, jsRuntime.JsonSerializerOptions);
354
Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"{{\"key\": \"{jsRuntime.
LastInvocationAsyncHandle
}\"}}"));
365
Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.
LastInvocationAsyncHandle
}, false"));
376
Assert.ThrowsAny<JsonException>(() => DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.
LastInvocationAsyncHandle
}, false, \"Hello\", 5]"));
391
DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.
LastInvocationAsyncHandle
}, false, \"Hello\", 5]");
406
DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.
LastInvocationAsyncHandle
}, true, {{\"intVal\": 7}}]");
419
DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.
LastInvocationAsyncHandle
}, true, [1, 2, 3]]");
431
DotNetDispatcher.EndInvokeJS(jsRuntime, $"[{jsRuntime.
LastInvocationAsyncHandle
}, true, null]");