29 references to WithEnvironment
Aspire.Hosting.Native.Core.Tests (25)
DeclarativeApplicationTests.cs (2)
121resource.WithEnvironment($"VALUE_{index}", value); 372service.WithEnvironment("PASSWORD", secret);
MilestoneDependencyTests.cs (17)
22first.WithEnvironment("PEER", composition.CreateEndpointValue(second, "http", "url")); 23first.WithEnvironment("SELF", composition.CreateEndpointValue(first, "http", "url")); 24second.WithEnvironment("PEER", composition.CreateEndpointValue(first, "http", "url")); 69consumer.WithEnvironment("PEER", composition.CreateEndpointValue(producer, "http", "url")); 106target.WithEnvironment("PEER", composition.CreateEndpointValue(source, "http", "url")); 158consumer.WithEnvironment("PEER", composition.CreateEndpointValue(producer, "http", "url")); 192consumer.WithEnvironment("PEER", composition.CreateEndpointValue(producer, "http", "url")); 212first.WithEnvironment("PEER", composition.CreateEndpointValue(second, "http", "url")); 213first.WithEnvironment("VERSION", composition.CreateLiteralValue(version)); 214second.WithEnvironment("PEER", composition.CreateEndpointValue(first, "http", "url")); 254first.WithEnvironment("PEER", composition.CreateEndpointValue(second, "http", "url")); 255first.WithEnvironment("VERSION", composition.CreateLiteralValue(version)); 256second.WithEnvironment("PEER", composition.CreateEndpointValue(first, "http", "url")); 294added.WithEnvironment("SELF", revision.CreateEndpointValue(added, "http", "url")); 324first.WithEnvironment("PEER", composition.CreateEndpointValue(second, "http", "url")); 325second.WithEnvironment("PEER", composition.CreateEndpointValue(first, "http", "url")); 356first.WithEnvironment("PEER", composition.CreateEndpointValue(second, "http", "url"));
NativeModelAlignmentTests.cs (4)
78.WithEnvironment("WORKERS", defaults) 79.WithEnvironment("REQUIRED", required) 80.WithEnvironment("PASSWORD", password) 81.WithEnvironment("SECRET", secret);
NativePublishingTests.cs (2)
26.WithEnvironment("REDIS_PASSWORD", password) 36web.WithEnvironment("CACHE_URL", connection);
Aspire.Hosting.Native.Server (4)
Api\DeclarativeWorkloadApi.cs (1)
78public DeclaredResource WithReference(string environmentName, DeclaredValue value) => WithEnvironment(environmentName, value);
Api\RpcAuthoringApi.cs (2)
102Resource.WithEnvironment(name, Value(value)); 185Resource.WithEnvironment($"ConnectionStrings__{source.GetResourceName()}", Value(source));
artifacts\obj\Aspire.Hosting.Native.Server\Debug\native-ats\NativeDispatch.g.cs (1)
684var result = target.WithEnvironment(RpcArguments.String(arguments["name"]), handles.Get<DeclaredValue>(arguments["value"], "Aspire.Hosting.Native.Server/Aspire.Hosting.Native.Api.DeclaredValue"));