2 instantiations of V3SearchResults
NuGet.Protocol (2)
_generated\10\PackageSearchJsonContext.V3SearchResults.g.cs (1)
31
ObjectCreator = () => new global::NuGet.Protocol.Model.
V3SearchResults
(),
Converters\V3SearchResultsConverter.cs (1)
37
var searchResults = new
V3SearchResults
();
28 references to V3SearchResults
NuGet.Protocol (28)
_generated\10\PackageSearchJsonContext.V3SearchResults.g.cs (18)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.
V3SearchResults
>? _V3SearchResults;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.
V3SearchResults
> V3SearchResults
22
get => _V3SearchResults ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.
V3SearchResults
>)Options.GetTypeInfo(typeof(global::NuGet.Protocol.Model.
V3SearchResults
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.
V3SearchResults
> Create_V3SearchResults(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Protocol.Model.
V3SearchResults
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.
V3SearchResults
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.Protocol.Model.
V3SearchResults
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.
V3SearchResults
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.Protocol.Model.
V3SearchResults
>(options, objectInfo);
58
DeclaringType = typeof(global::NuGet.Protocol.Model.
V3SearchResults
),
60
Getter = static obj => ((global::NuGet.Protocol.Model.
V3SearchResults
)obj).TotalHits,
61
Setter = static (obj, value) => ((global::NuGet.Protocol.Model.
V3SearchResults
)obj).TotalHits = value!,
68
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.
V3SearchResults
).GetProperty("TotalHits", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::NuGet.Protocol.Model.
V3SearchResults
),
80
Getter = static obj => ((global::NuGet.Protocol.Model.
V3SearchResults
)obj).Data,
81
Setter = static (obj, value) => ((global::NuGet.Protocol.Model.
V3SearchResults
)obj).Data = value!,
88
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.
V3SearchResults
).GetProperty("Data", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>), global::System.Array.Empty<global::System.Type>(), null),
_generated\36\PackageSearchJsonContext.GetJsonTypeInfo.g.cs (1)
62
if (type == typeof(global::NuGet.Protocol.Model.
V3SearchResults
))
Converters\PackageSearchJsonContext.cs (1)
16
[JsonSerializable(typeof(
V3SearchResults
))]
Converters\V3SearchResultsConverter.cs (3)
23
public override bool CanConvert(Type objectType) => objectType == typeof(
V3SearchResults
);
27
if (objectType != typeof(
V3SearchResults
))
37
var
searchResults = new V3SearchResults();
Resources\PackageSearchResourceV3.cs (5)
261
private async Task<
V3SearchResults
> ProcessHttpStreamWithoutBufferingAsync(HttpResponseMessage httpInitialResponse, uint take, CancellationToken token)
279
private static async Task<
V3SearchResults
> ProcessHttpStreamWithStjAsync(HttpResponseMessage httpInitialResponse, uint take, CancellationToken token)
286
var
results = await System.Text.Json.JsonSerializer.DeserializeAsync(stream, PackageSearchJsonContext.Default.V3SearchResults, token);
296
private static async Task<
V3SearchResults
> ProcessHttpStreamWithNsjAsync(HttpResponseMessage httpInitialResponse, uint take, CancellationToken token)
309
return _newtonsoftConvertersSerializer.Deserialize<
V3SearchResults
>(jsonReader);