28 references to ConnectAsync
Aspire.Hosting.Native.Client (2)
Aspire.Hosting.Native.Core.Tests (24)
NativeCSharpClientTests.cs (9)
67await using var client = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System);
100await using var client = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System);
141NativeClient.ConnectAsync(host.Endpoint, "wrong-token", TimeSpan.FromSeconds(10), TimeProvider.System));
142await using var first = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System);
143await using var second = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System);
159await using var client = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System);
179var connecting = NativeClient.ConnectAsync(listener.LocalEndpoint, "test-authentication-token",
192await using var client = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System);
208await Assert.ThrowsAsync<ArgumentException>(() => NativeClient.ConnectAsync(
NativeIntegrations.AppHost.Sample (1)
NativeIntegrations.DockerCompose.AppHost.Sample (1)