7 references to InvokeAsync
Aspire.Hosting.RemoteHost.Tests (7)
JsonRpcAuthenticationTests.cs (7)
39var result = await client.InvokeAsync<string>("ping"); 53() => client.InvokeAsync<JsonElement?>(methodName, arguments)); 65Assert.Equal("pong", await client.InvokeAsync<string>("ping")); 70await Assert.ThrowsAnyAsync<Exception>(() => client.InvokeAsync<string>("ping")); 71await Assert.ThrowsAnyAsync<Exception>(() => client.InvokeAsync<bool>("cancelToken", ["ct_missing"])); 78var authenticated = await client.InvokeAsync<bool>("authenticate", ["wrong-token"]); 97Assert.Equal("pong", await client.InvokeAsync<string>("ping"));