| File: _generated\22\TelemetryJsonContext.GetJsonTypeInfo.g.cs | Web Access |
| Project: src\sdk\src\Cli\Microsoft.DotNet.Cli.Telemetry\Microsoft.DotNet.Cli.Telemetry.csproj (Microsoft.DotNet.Cli.Telemetry) |
// <auto-generated/> #nullable enable annotations #nullable disable warnings // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0612, CS0618 namespace Microsoft.DotNet.Cli.Telemetry.Implementation { internal sealed partial class TelemetryJsonContext : 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(global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionData)) { return Create_ExceptionData(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails)) { return Create_ExceptionDetails(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.MessageData)) { return Create_MessageData(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.RemoteDependencyData)) { return Create_RemoteDependencyData(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.RequestData)) { return Create_RequestData(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryData<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionData>)) { return Create_TelemetryDataExceptionData(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryData<global::Microsoft.DotNet.Cli.Telemetry.Implementation.MessageData>)) { return Create_TelemetryDataMessageData(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryData<global::Microsoft.DotNet.Cli.Telemetry.Implementation.RemoteDependencyData>)) { return Create_TelemetryDataRemoteDependencyData(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryData<global::Microsoft.DotNet.Cli.Telemetry.Implementation.RequestData>)) { return Create_TelemetryDataRequestData(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryEnvelope<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionData>)) { return Create_ExceptionEnvelope(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryEnvelope<global::Microsoft.DotNet.Cli.Telemetry.Implementation.MessageData>)) { return Create_MessageEnvelope(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryEnvelope<global::Microsoft.DotNet.Cli.Telemetry.Implementation.RemoteDependencyData>)) { return Create_DependencyEnvelope(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryEnvelope<global::Microsoft.DotNet.Cli.Telemetry.Implementation.RequestData>)) { return Create_RequestEnvelope(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponse)) { return Create_TrackResponse(options); } if (type == typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError)) { return Create_TrackResponseError(options); } if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>)) { return Create_DictionaryStringString(options); } if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>)) { return Create_ListExceptionDetails(options); } if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>)) { return Create_ListTrackResponseError(options); } if (type == typeof(int)) { return Create_Int32(options); } if (type == typeof(string)) { return Create_String(options); } return null; } } }