3 instantiations of InstallStateContents
dotnet-aot (3)
Generated\361d1da7f942c932\InstallStateJsonSerializerContext.InstallStateContents.g.cs (1)
31
ObjectCreator = () => new global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
(),
parent\dotnet\Commands\Workload\InstallStateContents.cs (2)
28
return JsonSerializer.Deserialize(contents, InstallStateJsonSerializerContext.Default.InstallStateContents) ?? new
InstallStateContents
();
45
return new
InstallStateContents
();
34 references to InstallStateContents
dotnet-aot (34)
Generated\361d1da7f942c932\InstallStateJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
30
if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
))
Generated\361d1da7f942c932\InstallStateJsonSerializerContext.InstallStateContents.g.cs (26)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
>? _InstallStateContents;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
> InstallStateContents
22
get => _InstallStateContents ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
>)Options.GetTypeInfo(typeof(global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
> Create_InstallStateContents(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
),
60
Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
)obj).UseWorkloadSets,
61
Setter = static (obj, value) => ((global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
)obj).UseWorkloadSets = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
).GetProperty("UseWorkloadSets", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
),
80
Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
)obj).Manifests,
81
Setter = static (obj, value) => ((global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
)obj).Manifests = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
).GetProperty("Manifests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
),
100
Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
)obj).WorkloadVersion,
101
Setter = static (obj, value) => ((global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
)obj).WorkloadVersion = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
).GetProperty("WorkloadVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
118
private void InstallStateContentsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
? value)
128
bool? __value_UseWorkloadSets = ((global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
)value).UseWorkloadSets;
134
global::System.Collections.Generic.Dictionary<string, string> __value_Manifests = ((global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
)value).Manifests;
140
string __value_WorkloadVersion = ((global::Microsoft.DotNet.Cli.Commands.Workload.
InstallStateContents
)value).WorkloadVersion;
parent\dotnet\Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (2)
103
var
installStateContents =
InstallStateContents
.FromPath(path);
parent\dotnet\Commands\Workload\InstallStateContents.cs (4)
26
public static
InstallStateContents
FromString(string contents)
31
public static
InstallStateContents
FromPath(string path)
41
internal static
InstallStateContents
FromPath(string path, string? programDataDotnetRoot)
70
[JsonSerializable(typeof(
InstallStateContents
))]
parent\dotnet\Commands\Workload\WorkloadInfoHelper.cs (1)
167
var useWorkloadSets =
InstallStateContents
.FromPath(Path.Combine(WorkloadInstallType.GetInstallStateFolder(_currentSdkFeatureBand, UserLocalPath), "default.json")).ShouldUseWorkloadSets();