32 references to PackageSearchProblemType
NuGet.CommandLine.XPlat (32)
_generated\1\PackageSearchJsonContext.PackageSearchProblem.g.cs (9)
32
ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.CommandLine.XPlat.PackageSearchProblem((string)args[0], (global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
)args[1]),
35
ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
)}, modifiers: null),
73
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
>
79
Converter = (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),
88
AttributeProviderFactory = 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),
91
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
>(options, info1);
111
ParameterType = typeof(global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
),
_generated\2\PackageSearchJsonContext.PackageSearchProblemType.g.cs (9)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
>? _PackageSearchProblemType;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
> PackageSearchProblemType
22
get => _PackageSearchProblemType ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
>)Options.GetTypeInfo(typeof(global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
> Create_PackageSearchProblemType(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
> jsonTypeInfo))
29
jsonTypeInfo = 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)
30
if (type == typeof(global::NuGet.CommandLine.XPlat.
PackageSearchProblemType
))
Commands\PackageSearch\JsonFormat\PackageSearchProblem.cs (4)
16
[JsonConverter(typeof(JsonStringEnumConverter<
PackageSearchProblemType
>))]
17
public
PackageSearchProblemType
ProblemType { get; }
19
internal PackageSearchProblem(
PackageSearchProblemType
packageSearchProblemType, string text)
25
public PackageSearchProblem(string text,
PackageSearchProblemType
problemType)
Commands\PackageSearch\PackageSearchResultTableRenderer.cs (2)
50
if (packageSearchProblem.ProblemType ==
PackageSearchProblemType
.Error)
139
if (packageSearchProblem.ProblemType ==
PackageSearchProblemType
.Error)
Commands\PackageSearch\PackageSearchRunner.cs (7)
54
packageSearchResultRenderer.Add(new PackageSearchProblem(
PackageSearchProblemType
.Error, ex.Message));
64
packageSearchResultRenderer.Add(new PackageSearchProblem(
PackageSearchProblemType
.Error, HttpSourcesUtility.BuildHttpSourceErrorMessage(httpSources, "search")));
71
packageSearchResultRenderer.Add(new PackageSearchProblem(
PackageSearchProblemType
.Error, Strings.Error_NoSource));
107
packageSearchResultRenderer.Add(source, new PackageSearchProblem(
PackageSearchProblemType
.Error, ex.Message));
113
packageSearchResultRenderer.Add(source, new PackageSearchProblem(
PackageSearchProblemType
.Error, ex.Message));
120
packageSearchResultRenderer.Add(source, new PackageSearchProblem(
PackageSearchProblemType
.Error, ex.Message));
127
packageSearchResultRenderer.Add(source, new PackageSearchProblem(
PackageSearchProblemType
.Warning, Strings.Error_CannotObtainSearchSource));