32 references to PackageSearchProblemType
NuGet.CommandLine.XPlat (32)
_generated\1\PackageSearchJsonContext.PackageSearchProblem.g.cs (9)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.CommandLine.XPlat.PackageSearchProblem((string)args[0], (global::NuGet.CommandLine.XPlat.PackageSearchProblemType)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblemType)}, modifiers: null), 73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.CommandLine.XPlat.PackageSearchProblemType> 79Converter = (global::System.Text.Json.Serialization.JsonConverter<global::NuGet.CommandLine.XPlat.PackageSearchProblemType>)ExpandConverter(typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblemType), new global::System.Text.Json.Serialization.JsonStringEnumConverter<global::NuGet.CommandLine.XPlat.PackageSearchProblemType>(), options), 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), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblemType>(options, info1); 111ParameterType = typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblemType),
_generated\2\PackageSearchJsonContext.PackageSearchProblemType.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblemType>? _PackageSearchProblemType; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblemType> PackageSearchProblemType 22get => _PackageSearchProblemType ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblemType>)Options.GetTypeInfo(typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblemType)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblemType> Create_PackageSearchProblemType(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.CommandLine.XPlat.PackageSearchProblemType>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblemType> jsonTypeInfo)) 29jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::NuGet.CommandLine.XPlat.PackageSearchProblemType>(options, global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.GetEnumConverter<global::NuGet.CommandLine.XPlat.PackageSearchProblemType>(options));
_generated\36\PackageSearchJsonContext.GetJsonTypeInfo.g.cs (1)
30if (type == typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblemType))
Commands\PackageSearch\JsonFormat\PackageSearchProblem.cs (4)
16[JsonConverter(typeof(JsonStringEnumConverter<PackageSearchProblemType>))] 17public PackageSearchProblemType ProblemType { get; } 19internal PackageSearchProblem(PackageSearchProblemType packageSearchProblemType, string text) 25public PackageSearchProblem(string text, PackageSearchProblemType problemType)
Commands\PackageSearch\PackageSearchResultTableRenderer.cs (2)
50if (packageSearchProblem.ProblemType == PackageSearchProblemType.Error) 139if (packageSearchProblem.ProblemType == PackageSearchProblemType.Error)
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));