2 instantiations of PackageInfo
aspire-nuget (2)
Commands\SearchCommand.cs (1)
264
packages.Add(new
PackageInfo
SearchJsonContext.PackageInfo.g.cs (1)
31
ObjectCreator = () => new global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
(),
72 references to PackageInfo
aspire-nuget (72)
Commands\SearchCommand.cs (8)
117
var allPackages = new List<
PackageInfo
>();
146
return new List<
PackageInfo
>();
234
private static async Task<List<
PackageInfo
>> SearchSourceAsync(
258
var packages = new List<
PackageInfo
>();
279
private static void OutputResults(List<
PackageInfo
> packages, string format)
292
foreach (
var
pkg in packages)
314
public List<
PackageInfo
> Packages { get; set; } = [];
341
[JsonSerializable(typeof(
PackageInfo
))]
SearchJsonContext.GetJsonTypeInfo.g.cs (2)
26
if (type == typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
))
34
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>))
SearchJsonContext.ListPackageInfo.g.cs (12)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>>? _ListPackageInfo;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>> ListPackageInfo
22
get => _ListPackageInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>> Create_ListPackageInfo(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>>
31
ObjectCreator = () => new global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>(),
35
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>, global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>(options, info);
45
private void ListPackageInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>? value)
SearchJsonContext.PackageInfo.g.cs (46)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>? _PackageInfo;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
> PackageInfo
22
get => _PackageInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>)Options.GetTypeInfo(typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
> Create_PackageInfo(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
).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.NuGetHelper.Commands.
PackageInfo
>(options, objectInfo);
56
DeclaringType = typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
),
58
Getter = static obj => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Id,
59
Setter = static (obj, value) => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Id = value!,
66
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
),
80
Getter = static obj => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Version,
81
Setter = static (obj, value) => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Version = value!,
88
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
100
DeclaringType = typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
),
102
Getter = static obj => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Description,
103
Setter = static (obj, value) => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Description = value!,
110
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
120
DeclaringType = typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
),
122
Getter = static obj => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Authors,
123
Setter = static (obj, value) => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Authors = value!,
130
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
).GetProperty("Authors", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
140
DeclaringType = typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
),
142
Getter = static obj => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).AllVersions,
143
Setter = static (obj, value) => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).AllVersions = value!,
150
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
).GetProperty("AllVersions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null),
162
DeclaringType = typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
),
164
Getter = static obj => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Source,
165
Setter = static (obj, value) => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Source = value!,
172
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
).GetProperty("Source", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
182
DeclaringType = typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
),
184
Getter = static obj => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Deprecated,
185
Setter = static (obj, value) => ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)obj).Deprecated = value!,
192
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
).GetProperty("Deprecated", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
202
private void PackageInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
? value)
212
string __value_Id = ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)value).Id;
217
string __value_Version = ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)value).Version;
222
string __value_Description = ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)value).Description;
227
string __value_Authors = ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)value).Authors;
232
global::System.Collections.Generic.List<string> __value_AllVersions = ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)value).AllVersions;
238
string __value_Source = ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)value).Source;
243
writer.WriteBoolean(PropName_deprecated, ((global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
)value).Deprecated);
SearchJsonContext.SearchResult.g.cs (4)
51
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>>
66
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.NuGetHelper.Commands.SearchResult).GetProperty("Packages", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>), global::System.Array.Empty<global::System.Type>(), null),
69
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
>>(options, info0);
108
global::System.Collections.Generic.List<global::Aspire.Cli.NuGetHelper.Commands.
PackageInfo
> __value_Packages = ((global::Aspire.Cli.NuGetHelper.Commands.SearchResult)value).Packages;