6 references to InvokeAsync
Aspire.Hosting.RemoteHost.Tests (6)
JsonRpcAuthenticationTests.cs (6)
36
var result = await client.
InvokeAsync
<string>("ping");
49
() => client.
InvokeAsync
<JsonElement?>(methodName, arguments));
60
Assert.Equal("pong", await client.
InvokeAsync
<string>("ping"));
65
await Assert.ThrowsAnyAsync<Exception>(() => client.
InvokeAsync
<string>("ping"));
66
await Assert.ThrowsAnyAsync<Exception>(() => client.
InvokeAsync
<bool>("cancelToken", ["ct_missing"]));
73
var authenticated = await client.
InvokeAsync
<bool>("authenticate", ["wrong-token"]);