27 references to CallAsync
Aspire.Hosting.Native.Core.Tests (27)
NativeCliProtocolTests.cs (1)
122(await replacement.CallAsync("GetCapabilitiesAsync", null, timeout.Token))["result"]!
NativeNamedPipeTests.cs (5)
26var unauthenticated = await second.CallAsync("getApplicationServer", null, timeout.Token); 28Assert.True((await first.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>()); 29Assert.True((await second.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>()); 30Assert.NotNull((await first.CallAsync("getApplicationServer", null, timeout.Token))["result"]); 31Assert.NotNull((await second.CallAsync("getCapabilities", null, timeout.Token))["result"]);
NativeProviderClientTests.cs (2)
56await provider.CallAsync("authenticate", new JsonArray(host.Token), cancellationToken); 127await provider.CallAsync("authenticate", new JsonArray(host.Token), deadline.Token);
NativeSocketIsolationTests.cs (19)
34var error = (await unauthenticated.CallAsync("getApplicationServer", null, timeout.Token))["error"]!; 38Assert.True((await authenticated.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>()); 42Assert.NotNull((await authenticated.CallAsync("getCapabilities", null, timeout.Token))["result"]); 69var response = await client.CallAsync("Fail", null, TestContext.Current.CancellationToken); 74Assert.Equal("ok", (await client.CallAsync("Succeed", null, TestContext.Current.CancellationToken))["result"]!.GetValue<string>()); 77Assert.Equal("ok", (await subsequent.CallAsync("Succeed", null, TestContext.Current.CancellationToken))["result"]!.GetValue<string>()); 99Assert.True((await existing.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>()); 106Assert.NotNull((await existing.CallAsync("getCapabilities", null, timeout.Token))["result"]); 108Assert.True((await subsequent.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>()); 135await failing.CallAsync("authenticate", new JsonArray(Token), timeout.Token); 136var server = Result(await failing.CallAsync("getApplicationServer", null, timeout.Token)); 144var writer = Result(await failing.CallAsync("invokeCapability", new JsonArray("Aspire.Hosting.Native.Api/joinResourceExecution", 146var response = await failing.CallAsync("invokeCapability", new JsonArray("Aspire.Hosting.Native.Api/startContainer", 156Assert.NotNull((await failing.CallAsync("getCapabilities", null, timeout.Token))["result"]); 158Assert.True((await subsequent.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>()); 194var response = await next.CallAsync("GetCapabilitiesAsync", null, timeout.Token); 232Assert.Equal("ready", (await next.CallAsync("ready", null, timeout.Token))["result"]!.GetValue<string>()); 251Assert.Equal("ready", (await next.CallAsync("ready", null, timeout.Token))["result"]!.GetValue<string>()); 314Assert.True((await client.CallAsync("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>());