28 references to ConnectAsync
Aspire.Hosting.Native.Client (2)
Authoring\NativeApplication.cs (1)
173_client = await NativeClient.ConnectAsync(IPEndPoint.Parse(endpoint), token, TimeSpan.FromSeconds(15),
NativeProviderHost.cs (1)
32var connected = await NativeClient.ConnectAsync(endpoint, token, TimeSpan.FromSeconds(15), clock, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Native.Core.Tests (24)
NativeBuilderAuthoringTests.cs (3)
110await using var native = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System); 216await using var native = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System); 243await using var native = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System);
NativeComposeCSharpTests.cs (1)
523NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System, TestContext.Current.CancellationToken);
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(
NativeIpcSecurityTests.cs (1)
135await using var client = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(15),
NativeProviderActivationTests.cs (2)
16await using var client = await NativeClient.ConnectAsync(host.Endpoint, "test-token", 46await using var client = await NativeClient.ConnectAsync(host.Endpoint, host.Token,
NativeProviderClientTests.cs (1)
497NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System);
NativeProviderLifecycleTests.cs (2)
128var provider = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(15), 644NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(15), TimeProvider.System);
NativeRpcAuthoringTests.cs (1)
316NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System);
NativeSymbolicValueClientTests.cs (3)
15await using var client = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System); 51await using var client = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System); 88await using var client = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(10), TimeProvider.System);
NativeSymbolicWorkloadSocketTests.cs (1)
26await using var client = await NativeClient.ConnectAsync(host.Endpoint, host.Token, TimeSpan.FromSeconds(15), clock, token);
NativeIntegrations.AppHost.Sample (1)
Program.cs (1)
13await using var client = await NativeClient.ConnectAsync(endpoint, token, TimeSpan.FromSeconds(15), clock);
NativeIntegrations.DockerCompose.AppHost.Sample (1)
Program.cs (1)
62await using var client = await NativeClient.ConnectAsync(IPEndPoint.Parse(endpoint), token, TimeSpan.FromSeconds(15), TimeProvider.System);