|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace Aspire.Hosting.Dashboard
{
internal sealed partial class DashboardLogMessageContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Dashboard.DashboardLogMessage>? _DashboardLogMessage;
/// <summary>
/// Defines the source generated JSON serialization contract metadata for a given type.
/// </summary>
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Dashboard.DashboardLogMessage> DashboardLogMessage
{
get => _DashboardLogMessage ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Dashboard.DashboardLogMessage>)Options.GetTypeInfo(typeof(global::Aspire.Hosting.Dashboard.DashboardLogMessage));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Dashboard.DashboardLogMessage> Create_DashboardLogMessage(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Hosting.Dashboard.DashboardLogMessage>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Dashboard.DashboardLogMessage> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Hosting.Dashboard.DashboardLogMessage>
{
ObjectCreator = () => new global::Aspire.Hosting.Dashboard.DashboardLogMessage(),
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => DashboardLogMessagePropInit(options),
ConstructorParameterMetadataInitializer = null,
SerializeHandler = null
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Hosting.Dashboard.DashboardLogMessage>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] DashboardLogMessagePropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[7];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Aspire.Hosting.Dashboard.DashboardLogMessage),
Converter = null,
Getter = static obj => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).Timestamp,
Setter = static (obj, value) => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).Timestamp = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Timestamp",
JsonPropertyName = null
};
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info0);
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Aspire.Hosting.Dashboard.DashboardLogMessage),
Converter = null,
Getter = static obj => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).EventId,
Setter = static (obj, value) => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).EventId = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "EventId",
JsonPropertyName = null
};
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info1);
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.Logging.LogLevel>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Aspire.Hosting.Dashboard.DashboardLogMessage),
Converter = (global::System.Text.Json.Serialization.JsonConverter<global::Microsoft.Extensions.Logging.LogLevel>)ExpandConverter(typeof(global::Microsoft.Extensions.Logging.LogLevel), new global::System.Text.Json.Serialization.JsonStringEnumConverter<global::Microsoft.Extensions.Logging.LogLevel>(), options),
Getter = static obj => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).LogLevel,
Setter = static (obj, value) => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).LogLevel = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "LogLevel",
JsonPropertyName = null
};
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.Logging.LogLevel>(options, info2);
var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Aspire.Hosting.Dashboard.DashboardLogMessage),
Converter = null,
Getter = static obj => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).Category,
Setter = static (obj, value) => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).Category = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Category",
JsonPropertyName = null
};
properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info3);
var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Aspire.Hosting.Dashboard.DashboardLogMessage),
Converter = null,
Getter = static obj => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).Message,
Setter = static (obj, value) => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).Message = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Message",
JsonPropertyName = null
};
properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info4);
var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Aspire.Hosting.Dashboard.DashboardLogMessage),
Converter = null,
Getter = static obj => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).Exception,
Setter = static (obj, value) => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).Exception = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Exception",
JsonPropertyName = null
};
properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info5);
var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Text.Json.Nodes.JsonObject>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Aspire.Hosting.Dashboard.DashboardLogMessage),
Converter = null,
Getter = static obj => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).State,
Setter = static (obj, value) => ((global::Aspire.Hosting.Dashboard.DashboardLogMessage)obj).State = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "State",
JsonPropertyName = null
};
properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Text.Json.Nodes.JsonObject>(options, info6);
return properties;
}
}
}
|