|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace Aspire.Cli.Backchannel
{
internal partial class BackchannelJsonSerializerContext : 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(bool?))
{
return Create_NullableBoolean(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry))
{
return Create_BackchannelLogEntry(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.CommandOutput))
{
return Create_CommandOutput(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.DashboardUrlsState))
{
return Create_DashboardUrlsState(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.DisplayLineState))
{
return Create_DisplayLineState(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.EnvVar))
{
return Create_EnvVar(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.PublishingActivity))
{
return Create_PublishingActivity(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.PublishingActivityData))
{
return Create_PublishingActivityData(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput))
{
return Create_PublishingPromptInput(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer))
{
return Create_PublishingPromptInputAnswer(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer[]))
{
return Create_PublishingPromptInputAnswerArray(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.RpcResourceState))
{
return Create_RpcResourceState(options);
}
if (type == typeof(global::Microsoft.Extensions.Logging.EventId))
{
return Create_EventId(options);
}
if (type == typeof(global::Microsoft.Extensions.Logging.LogLevel))
{
return Create_LogLevel(options);
}
if (type == typeof(global::Spectre.Console.ValidationResult))
{
return Create_ValidationResult(options);
}
if (type == typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>))
{
return Create_EnumeratorResultsBackchannelLogEntry(options);
}
if (type == typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>))
{
return Create_EnumeratorResultsCommandOutput(options);
}
if (type == typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.PublishingActivity>))
{
return Create_EnumeratorResultsPublishingActivity(options);
}
if (type == typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.RpcResourceState>))
{
return Create_EnumeratorResultsRpcResourceState(options);
}
if (type == typeof(global::StreamJsonRpc.RequestId))
{
return Create_RequestId(options);
}
if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>))
{
return Create_IAsyncEnumerableBackchannelLogEntry(options);
}
if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.CommandOutput>))
{
return Create_IAsyncEnumerableCommandOutput(options);
}
if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.PublishingActivity>))
{
return Create_IAsyncEnumerablePublishingActivity(options);
}
if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.RpcResourceState>))
{
return Create_IAsyncEnumerableRpcResourceState(options);
}
if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Aspire.Cli.Backchannel.DisplayLineState>))
{
return Create_IEnumerableDisplayLineState(options);
}
if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>))
{
return Create_IReadOnlyListBackchannelLogEntry(options);
}
if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>))
{
return Create_IReadOnlyListCommandOutput(options);
}
if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingActivity>))
{
return Create_IReadOnlyListPublishingActivity(options);
}
if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>))
{
return Create_IReadOnlyListPublishingPromptInput(options);
}
if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.RpcResourceState>))
{
return Create_IReadOnlyListRpcResourceState(options);
}
if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, string>>))
{
return Create_IReadOnlyListKeyValuePairStringString(options);
}
if (type == typeof(global::System.Collections.Generic.IReadOnlyList<string>))
{
return Create_IReadOnlyListString(options);
}
if (type == typeof(global::System.Collections.Generic.KeyValuePair<string, string>))
{
return Create_KeyValuePairStringString(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Backchannel.EnvVar>))
{
return Create_ListEnvVar(options);
}
if (type == typeof(global::System.Collections.Generic.List<string>))
{
return Create_ListString(options);
}
if (type == typeof(global::System.DateTimeOffset))
{
return Create_DateTimeOffset(options);
}
if (type == typeof(global::System.Text.Json.JsonElement))
{
return Create_JsonElement(options);
}
if (type == typeof(int))
{
return Create_Int32(options);
}
if (type == typeof(int?))
{
return Create_NullableInt32(options);
}
if (type == typeof(long))
{
return Create_Int64(options);
}
if (type == typeof(long?))
{
return Create_NullableInt64(options);
}
if (type == typeof(string))
{
return Create_String(options);
}
if (type == typeof(string[]))
{
return Create_StringArray(options);
}
return null;
}
}
}
|