5 instantiations of ResourceSnapshotEnvironmentVariable
aspire (1)
BackchannelJsonSerializerContext.ResourceSnapshotEnvironmentVariable.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
(){ Name = (string)args[0], Value = (string)args[1], IsFromSpec = (bool)args[2] },
Aspire.Cli.Tests (4)
Backchannel\ResourceSnapshotMapperTests.cs (2)
66
new
ResourceSnapshotEnvironmentVariable
{ Name = "ASPNETCORE_ENVIRONMENT", Value = "Development", IsFromSpec = true },
67
new
ResourceSnapshotEnvironmentVariable
{ Name = "INTERNAL_VAR", Value = "hidden", IsFromSpec = false }
Mcp\ListResourcesToolTests.cs (2)
111
new
ResourceSnapshotEnvironmentVariable
{ Name = "ASPNETCORE_ENVIRONMENT", Value = "Development", IsFromSpec = true },
112
new
ResourceSnapshotEnvironmentVariable
{ Name = "ConnectionStrings__Database", Value = "SuperSecretPassword123", IsFromSpec = true }
41 references to ResourceSnapshotEnvironmentVariable
aspire (41)
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
162
if (type == typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
))
166
if (type == typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]))
BackchannelJsonSerializerContext.ResourceSnapshot.g.cs (5)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.ResourceSnapshot(){ Name = (string)args[0], DisplayName = (string)args[1], ResourceType = (string)args[2], Type = (string)args[3], State = (string)args[4], StateStyle = (string)args[5], HealthStatus = (string)args[6], ExitCode = (int?)args[7], CreatedAt = (global::System.DateTimeOffset?)args[8], StartedAt = (global::System.DateTimeOffset?)args[9], StoppedAt = (global::System.DateTimeOffset?)args[10], Urls = (global::Aspire.Cli.Backchannel.ResourceSnapshotUrl[])args[11], Relationships = (global::Aspire.Cli.Backchannel.ResourceSnapshotRelationship[])args[12], HealthReports = (global::Aspire.Cli.Backchannel.ResourceSnapshotHealthReport[])args[13], Volumes = (global::Aspire.Cli.Backchannel.ResourceSnapshotVolume[])args[14], EnvironmentVariables = (global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[])args[15], Properties = (global::System.Collections.Generic.Dictionary<string, string>)args[16], McpServer = (global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer)args[17], Commands = (global::Aspire.Cli.Backchannel.ResourceSnapshotCommand[])args[18] },
362
var info15 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]>
377
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]), global::System.Array.Empty<global::System.Type>(), null),
380
properties[15] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]>(options, info15);
638
ParameterType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]),
BackchannelJsonSerializerContext.ResourceSnapshotEnvironmentVariable.g.cs (23)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
>? _ResourceSnapshotEnvironmentVariable;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
> ResourceSnapshotEnvironmentVariable
22
get => _ResourceSnapshotEnvironmentVariable ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
> Create_ResourceSnapshotEnvironmentVariable(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
>(options, objectInfo);
56
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
),
58
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
)obj).Name,
66
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
79
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
),
81
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
)obj).Value,
89
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
99
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
),
101
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
)obj).IsFromSpec,
109
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
).GetProperty("IsFromSpec", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
119
private void ResourceSnapshotEnvironmentVariableSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
? value)
129
writer.WriteString(PropName_Name, ((global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
)value).Name);
130
writer.WriteString(PropName_Value, ((global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
)value).Value);
131
writer.WriteBoolean(PropName_IsFromSpec, ((global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
)value).IsFromSpec);
BackchannelJsonSerializerContext.ResourceSnapshotEnvironmentVariableArray.g.cs (10)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]>? _ResourceSnapshotEnvironmentVariableArray;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]> ResourceSnapshotEnvironmentVariableArray
22
get => _ResourceSnapshotEnvironmentVariableArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]> Create_ResourceSnapshotEnvironmentVariableArray(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]>
35
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
>(options, info);
45
private void ResourceSnapshotEnvironmentVariableArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.
ResourceSnapshotEnvironmentVariable
[]? value)
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (1)
655
public
ResourceSnapshotEnvironmentVariable
[] EnvironmentVariables { get; init; } = [];