| File: _generated\95\PluginJsonContext.GetJsonTypeInfo.g.cs | Web Access |
| Project: src\nuget-client\src\NuGet.Core\NuGet.Protocol\NuGet.Protocol.csproj (NuGet.Protocol) |
// <auto-generated/> #nullable enable annotations #nullable disable warnings // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0612, CS0618 namespace NuGet.Protocol.Plugins { internal partial class PluginJsonContext : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver { /// <inheritdoc/> public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) { Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); return typeInfo; } global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options) { if (type == typeof(bool)) { return Create_Boolean(options); } if (type == typeof(double)) { return Create_Double(options); } if (type == typeof(double?)) { return Create_NullableDouble(options); } if (type == typeof(global::NuGet.Common.LogLevel)) { return Create_LogLevel(options); } if (type == typeof(global::NuGet.Protocol.Plugins.CopyFilesInPackageRequest)) { return Create_CopyFilesInPackageRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.CopyFilesInPackageResponse)) { return Create_CopyFilesInPackageResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.CopyNupkgFileRequest)) { return Create_CopyNupkgFileRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.CopyNupkgFileResponse)) { return Create_CopyNupkgFileResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.Fault)) { return Create_Fault(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetAuthenticationCredentialsRequest)) { return Create_GetAuthenticationCredentialsRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetAuthenticationCredentialsResponse)) { return Create_GetAuthenticationCredentialsResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetCredentialsRequest)) { return Create_GetCredentialsRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetCredentialsResponse)) { return Create_GetCredentialsResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetFilesInPackageRequest)) { return Create_GetFilesInPackageRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetFilesInPackageResponse)) { return Create_GetFilesInPackageResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetOperationClaimsRequest)) { return Create_GetOperationClaimsRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetOperationClaimsResponse)) { return Create_GetOperationClaimsResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetPackageHashRequest)) { return Create_GetPackageHashRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetPackageHashResponse)) { return Create_GetPackageHashResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetPackageVersionsRequest)) { return Create_GetPackageVersionsRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetPackageVersionsResponse)) { return Create_GetPackageVersionsResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetServiceIndexRequest)) { return Create_GetServiceIndexRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.GetServiceIndexResponse)) { return Create_GetServiceIndexResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.HandshakeRequest)) { return Create_HandshakeRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.HandshakeResponse)) { return Create_HandshakeResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.InitializeRequest)) { return Create_InitializeRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.InitializeResponse)) { return Create_InitializeResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.LogRequest)) { return Create_LogRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.LogResponse)) { return Create_LogResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.Message)) { return Create_Message(options); } if (type == typeof(global::NuGet.Protocol.Plugins.MessageResponseCode)) { return Create_MessageResponseCode(options); } if (type == typeof(global::NuGet.Protocol.Plugins.MonitorNuGetProcessExitRequest)) { return Create_MonitorNuGetProcessExitRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.MonitorNuGetProcessExitResponse)) { return Create_MonitorNuGetProcessExitResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.OperationClaim)) { return Create_OperationClaim(options); } if (type == typeof(global::NuGet.Protocol.Plugins.PrefetchPackageRequest)) { return Create_PrefetchPackageRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.PrefetchPackageResponse)) { return Create_PrefetchPackageResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.Progress)) { return Create_Progress(options); } if (type == typeof(global::NuGet.Protocol.Plugins.SetCredentialsRequest)) { return Create_SetCredentialsRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.SetCredentialsResponse)) { return Create_SetCredentialsResponse(options); } if (type == typeof(global::NuGet.Protocol.Plugins.SetLogLevelRequest)) { return Create_SetLogLevelRequest(options); } if (type == typeof(global::NuGet.Protocol.Plugins.SetLogLevelResponse)) { return Create_SetLogLevelResponse(options); } if (type == typeof(global::NuGet.Versioning.SemanticVersion)) { return Create_SemanticVersion(options); } if (type == typeof(global::System.Collections.Generic.IEnumerable<string>)) { return Create_IEnumerableString(options); } if (type == typeof(global::System.Collections.Generic.IList<string>)) { return Create_IListString(options); } if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Plugins.OperationClaim>)) { return Create_IReadOnlyListOperationClaim(options); } if (type == typeof(global::System.Collections.Generic.IReadOnlyList<string>)) { return Create_IReadOnlyListString(options); } if (type == typeof(global::System.Net.HttpStatusCode)) { return Create_HttpStatusCode(options); } if (type == typeof(global::System.TimeSpan)) { return Create_TimeSpan(options); } if (type == typeof(global::System.Uri)) { return Create_Uri(options); } if (type == typeof(int)) { return Create_Int32(options); } if (type == typeof(string)) { return Create_String(options); } return null; } } }