|
// <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.AppHostInformation))
{
return Create_AppHostInformation(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.DashboardMcpConnectionInfo))
{
return Create_DashboardMcpConnectionInfo(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.ResourceSnapshot))
{
return Create_ResourceSnapshot(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot[]))
{
return Create_ResourceSnapshotArray(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer))
{
return Create_ResourceSnapshotMcpServer(options);
}
if (type == typeof(global::Aspire.Cli.Backchannel.RpcResourceState))
{
return Create_RpcResourceState(options);
}
if (type == typeof(global::Aspire.Cli.Commands.AppHostProjectSearchResultPoco))
{
return Create_AppHostProjectSearchResultPoco(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.CallbackParameterInfo))
{
return Create_CallbackParameterInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.CapabilitiesInfo))
{
return Create_CapabilitiesInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.CapabilityInfo))
{
return Create_CapabilityInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.DiagnosticInfo))
{
return Create_DiagnosticInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.DtoPropertyInfo))
{
return Create_DtoPropertyInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.DtoTypeInfo))
{
return Create_DtoTypeInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.EnumTypeInfo))
{
return Create_EnumTypeInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.HandleTypeInfo))
{
return Create_HandleTypeInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.ParameterInfo))
{
return Create_ParameterInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.TypeRefInfo))
{
return Create_TypeRefInfo(options);
}
if (type == typeof(global::Aspire.Hosting.Ats.CommandSpec))
{
return Create_CommandSpec(options);
}
if (type == typeof(global::Aspire.Hosting.Ats.RuntimeSpec))
{
return Create_RuntimeSpec(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::ModelContextProtocol.Protocol.Icon))
{
return Create_Icon(options);
}
if (type == typeof(global::ModelContextProtocol.Protocol.Tool))
{
return Create_Tool(options);
}
if (type == typeof(global::ModelContextProtocol.Protocol.Tool[]))
{
return Create_ToolArray(options);
}
if (type == typeof(global::ModelContextProtocol.Protocol.ToolAnnotations))
{
return Create_ToolAnnotations(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.ResourceSnapshot>))
{
return Create_EnumeratorResultsResourceSnapshot(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.Dictionary<string, global::System.Text.Json.JsonElement>))
{
return Create_DictionaryStringJsonElement(options);
}
if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
{
return Create_DictionaryStringString(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.ResourceSnapshot>))
{
return Create_IAsyncEnumerableResourceSnapshot(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.IList<global::ModelContextProtocol.Protocol.Icon>))
{
return Create_IListIcon(options);
}
if (type == typeof(global::System.Collections.Generic.IList<string>))
{
return Create_IListString(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.ResourceSnapshot>))
{
return Create_IReadOnlyListResourceSnapshot(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<global::Aspire.Cli.Commands.Sdk.CallbackParameterInfo>))
{
return Create_ListCallbackParameterInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.CapabilityInfo>))
{
return Create_ListCapabilityInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.DiagnosticInfo>))
{
return Create_ListDiagnosticInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.DtoPropertyInfo>))
{
return Create_ListDtoPropertyInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.DtoTypeInfo>))
{
return Create_ListDtoTypeInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.EnumTypeInfo>))
{
return Create_ListEnumTypeInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.HandleTypeInfo>))
{
return Create_ListHandleTypeInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.ParameterInfo>))
{
return Create_ListParameterInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.TypeRefInfo>))
{
return Create_ListTypeRefInfo(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.DateTimeOffset?))
{
return Create_NullableDateTimeOffset(options);
}
if (type == typeof(global::System.Text.Json.JsonElement))
{
return Create_JsonElement(options);
}
if (type == typeof(global::System.Text.Json.JsonElement?))
{
return Create_NullableJsonElement(options);
}
if (type == typeof(global::System.Text.Json.Nodes.JsonObject))
{
return Create_JsonObject(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;
}
}
}
|