8 instantiations of PackageSearchProblem
NuGet.CommandLine.XPlat (8)
_generated\1\PackageSearchJsonContext.PackageSearchProblem.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.CommandLine.XPlat.PackageSearchProblem((string)args[0], (global::NuGet.CommandLine.XPlat.PackageSearchProblemType)args[1]),
Commands\PackageSearch\PackageSearchRunner.cs (7)
54packageSearchResultRenderer.Add(new PackageSearchProblem(PackageSearchProblemType.Error, ex.Message)); 64packageSearchResultRenderer.Add(new PackageSearchProblem(PackageSearchProblemType.Error, HttpSourcesUtility.BuildHttpSourceErrorMessage(httpSources, "search"))); 71packageSearchResultRenderer.Add(new PackageSearchProblem(PackageSearchProblemType.Error, Strings.Error_NoSource)); 107packageSearchResultRenderer.Add(source, new PackageSearchProblem(PackageSearchProblemType.Error, ex.Message)); 113packageSearchResultRenderer.Add(source, new PackageSearchProblem(PackageSearchProblemType.Error, ex.Message)); 120packageSearchResultRenderer.Add(source, new PackageSearchProblem(PackageSearchProblemType.Error, ex.Message)); 127packageSearchResultRenderer.Add(source, new PackageSearchProblem(PackageSearchProblemType.Warning, Strings.Error_CannotObtainSearchSource));
46 references to PackageSearchProblem
NuGet.CommandLine.XPlat (46)
_generated\1\PackageSearchJsonContext.PackageSearchProblem.g.cs (16)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblem>? _PackageSearchProblem; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblem> PackageSearchProblem 22get => _PackageSearchProblem ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblem>)Options.GetTypeInfo(typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblem> Create_PackageSearchProblem(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.CommandLine.XPlat.PackageSearchProblem>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblem> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.CommandLine.XPlat.PackageSearchProblem> 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblemType)}, modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblem>(options, objectInfo); 56DeclaringType = typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem), 58Getter = static obj => ((global::NuGet.CommandLine.XPlat.PackageSearchProblem)obj).Text, 66AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem).GetProperty("Text", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem), 80Getter = static obj => ((global::NuGet.CommandLine.XPlat.PackageSearchProblem)obj).ProblemType, 88AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem).GetProperty("ProblemType", InstanceMemberBindingFlags, null, typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblemType), global::System.Array.Empty<global::System.Type>(), null),
_generated\24\PackageSearchJsonContext.ListPackageSearchProblem.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>? _ListPackageSearchProblem; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> ListPackageSearchProblem 22get => _ListPackageSearchProblem ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> Create_ListPackageSearchProblem(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> 31ObjectCreator = () => new global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>(), 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>, global::NuGet.CommandLine.XPlat.PackageSearchProblem>(options, info); 45private void ListPackageSearchProblemSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>? value)
_generated\3\PackageSearchJsonContext.PackageSearchResult.g.cs (3)
71var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> 86AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchResult).GetProperty("Problems", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>), global::System.Array.Empty<global::System.Type>(), null), 89properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>(options, info1);
_generated\36\PackageSearchJsonContext.GetJsonTypeInfo.g.cs (2)
26if (type == typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem)) 118if (type == typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>))
_generated\4\PackageSearchJsonContext.SearchMainOutput.g.cs (3)
71var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> 86AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.SearchMainOutput).GetProperty("Problems", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>), global::System.Array.Empty<global::System.Type>(), null), 89properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>(options, info1);
Commands\PackageSearch\IPackageSearchResultRenderer.cs (2)
33void Add(PackageSource source, PackageSearchProblem packageSearchProblem); 44void Add(PackageSearchProblem packageSearchProblem);
Commands\PackageSearch\JsonFormat\PackageSearchMainOutput.cs (2)
17public List<PackageSearchProblem> Problems { get; set; } 25Problems = new List<PackageSearchProblem>();
Commands\PackageSearch\JsonFormat\PackageSearchResult.cs (1)
21public List<PackageSearchProblem> Problems { get; set; }
Commands\PackageSearch\PackageSearchResultJsonRenderer.cs (3)
40public void Add(PackageSource source, PackageSearchProblem packageSearchProblem) 44Problems = new List<PackageSearchProblem>() { packageSearchProblem } 61public void Add(PackageSearchProblem packageSearchProblem)
Commands\PackageSearch\PackageSearchResultTableRenderer.cs (2)
45public void Add(PackageSource source, PackageSearchProblem packageSearchProblem) 137public void Add(PackageSearchProblem packageSearchProblem)