2 writes to LastInvocationAsyncHandle
Microsoft.JSInterop.Tests (2)
Infrastructure\DotNetDispatcherTest.cs (2)
1085
LastInvocationAsyncHandle
= invocationInfo.AsyncHandle;
1099
LastInvocationAsyncHandle
= default;
11 references to LastInvocationAsyncHandle
Microsoft.JSInterop.Tests (11)
Infrastructure\DotNetDispatcherTest.cs (11)
270
var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.
LastInvocationAsyncHandle
, true, testDTO }, jsRuntime.JsonSerializerOptions);
291
var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.
LastInvocationAsyncHandle
, false, expected }, jsRuntime.JsonSerializerOptions);
307
var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.
LastInvocationAsyncHandle
, false, null }, jsRuntime.JsonSerializerOptions);
324
var argsJson = JsonSerializer.Serialize(new object[] { jsRuntime.
LastInvocationAsyncHandle
, true, testDTO }, jsRuntime.JsonSerializerOptions);
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]");