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