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