7 instantiations of EnvironmentVariableSnapshot
Aspire.Hosting (1)
Dcp\ResourceSnapshotBuilder.cs (1)
298
environment.Add(
new
(env.Name, env.Value ?? "", isFromSpec));
Aspire.Hosting.Tests (6)
Backchannel\AppHostBackchannelTests.cs (2)
64
EnvironmentVariables = [
new
("e", "f", true),
new
("g", "h", false)]
Backchannel\Exec\ContainerResourceExecTests.cs (2)
73
EnvironmentVariables = [
new
("e", "f", true),
new
("g", "h", false)]
Backchannel\Exec\ProjectResourceExecTests.cs (2)
132
EnvironmentVariables = [
new
("e", "f", true),
new
("g", "h", false)]
5 references to EnvironmentVariableSnapshot
Aspire.Hosting (5)
ApplicationModel\CustomResourceSnapshot.cs (1)
104
public ImmutableArray<
EnvironmentVariableSnapshot
> EnvironmentVariables { get; init; } = [];
Dashboard\proto\Partials.cs (1)
50
foreach (
var
env in snapshot.Environment)
Dashboard\ResourceSnapshot.cs (1)
25
public required ImmutableArray<
EnvironmentVariableSnapshot
> Environment { get; init; }
Dcp\ResourceSnapshotBuilder.cs (2)
283
private static ImmutableArray<
EnvironmentVariableSnapshot
> GetEnvironmentVariables(List<EnvVar>? effectiveSource, List<EnvVar>? specSource)
290
var environment = ImmutableArray.CreateBuilder<
EnvironmentVariableSnapshot
>(effectiveSource.Count);