15 references to Environment
Aspire.Hosting (5)
Publishing\BuildImageSecretValue.cs (1)
28/// <param name="Value">The resolved secret value. For <see cref="BuildImageSecretType.Environment"/> secrets, this is the secret content.
Publishing\DockerContainerRuntime.cs (1)
116if (buildSecret.Value.Type == BuildImageSecretType.Environment && buildSecret.Value.Value is not null)
Publishing\PodmanContainerRuntime.cs (1)
203if (buildSecret.Value.Type == BuildImageSecretType.Environment && buildSecret.Value.Value is not null)
Publishing\ResourceContainerImageManager.cs (1)
1010var secretType = buildSecret.Value is FileInfo ? BuildImageSecretType.File : BuildImageSecretType.Environment;
Publishing\WslcContainerRuntime.cs (1)
95if (buildSecret.Value.Type == BuildImageSecretType.Environment && buildSecret.Value.Value is not null)
Aspire.Hosting.Tests (10)
Publishing\ContainerRuntimeBaseTests.cs (2)
63["token"] = new("secret-value", BuildImageSecretType.Environment), 64["inherited"] = new(null, BuildImageSecretType.Environment)
Publishing\ResourceContainerImageManagerTests.cs (7)
1510Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["SECRET_ASENV"].Type); 1666Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["STRING_SECRET"].Type); 1670Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["NULL_SECRET"].Type); 1719Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["ENV_SECRET"].Type); 1731["MY_SECRET"] = new BuildImageSecretValue("secret-value", BuildImageSecretType.Environment) 1757["MY_SECRET"] = new BuildImageSecretValue(null, BuildImageSecretType.Environment) 1770["ENV_TOKEN"] = new BuildImageSecretValue("token-value", BuildImageSecretType.Environment),
Publishing\WslcContainerRuntimeTests.cs (1)
49["token"] = new("secret-value", BuildImageSecretType.Environment),