7 references to InvokeAsync
Aspire.Hosting.RemoteHost.Tests (7)
JsonRpcAuthenticationTests.cs (7)
43var result = await client.InvokeAsync<string>("ping"); 57() => client.InvokeAsync<JsonElement?>(methodName, arguments)); 69Assert.Equal("pong", await client.InvokeAsync<string>("ping")); 74await Assert.ThrowsAnyAsync<Exception>(() => client.InvokeAsync<string>("ping")); 75await Assert.ThrowsAnyAsync<Exception>(() => client.InvokeAsync<bool>("cancelToken", ["ct_missing"])); 82var authenticated = await client.InvokeAsync<bool>("authenticate", ["wrong-token"]); 101Assert.Equal("pong", await client.InvokeAsync<string>("ping"));