3 instantiations of ResourceSnapshotCommand
aspire (1)
BackchannelJsonSerializerContext.ResourceSnapshotCommand.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
(){ Name = (string)args[0], DisplayName = (string)args[1], Description = (string)args[2], State = (string)args[3] },
Aspire.Cli.Tests (2)
Backchannel\ResourceSnapshotMapperTests.cs (2)
61
new
ResourceSnapshotCommand
{ Name = "resource-stop", State = "Enabled", Description = "Stop" },
62
new
ResourceSnapshotCommand
{ Name = "resource-start", State = "Disabled", Description = "Start" }
45 references to ResourceSnapshotCommand
aspire (45)
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
154
if (type == typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
))
158
if (type == typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]))
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] },
426
var info18 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]>
441
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("Commands", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]), global::System.Array.Empty<global::System.Type>(), null),
444
properties[18] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]>(options, info18);
665
ParameterType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]),
BackchannelJsonSerializerContext.ResourceSnapshotCommand.g.cs (27)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
>? _ResourceSnapshotCommand;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
> ResourceSnapshotCommand
22
get => _ResourceSnapshotCommand ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
> Create_ResourceSnapshotCommand(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
).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.
ResourceSnapshotCommand
>(options, objectInfo);
56
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
),
58
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
)obj).Name,
66
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
79
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
),
81
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
)obj).DisplayName,
89
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
99
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
),
101
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
)obj).Description,
109
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
119
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
),
121
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
)obj).State,
129
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
).GetProperty("State", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
142
private void ResourceSnapshotCommandSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
? value)
152
writer.WriteString(PropName_Name, ((global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
)value).Name);
153
writer.WriteString(PropName_DisplayName, ((global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
)value).DisplayName);
154
writer.WriteString(PropName_Description, ((global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
)value).Description);
155
writer.WriteString(PropName_State, ((global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
)value).State);
BackchannelJsonSerializerContext.ResourceSnapshotCommandArray.g.cs (10)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]>? _ResourceSnapshotCommandArray;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]> ResourceSnapshotCommandArray
22
get => _ResourceSnapshotCommandArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]> Create_ResourceSnapshotCommandArray(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]>
35
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
>(options, info);
45
private void ResourceSnapshotCommandArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.
ResourceSnapshotCommand
[]? value)
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (1)
671
public
ResourceSnapshotCommand
[] Commands { get; init; } = [];