1 instantiation of ResourceInfoJson
aspire (1)
OtlpCliJsonSerializerContext.ResourceInfoJson.g.cs (1)
31ObjectCreator = () => new global::Aspire.Cli.Otlp.ResourceInfoJson(),
56 references to ResourceInfoJson
aspire (56)
Commands\TelemetryCommandHelpers.cs (1)
203var exactMatch = resources.FirstOrDefault(r =>
Otlp\OtlpCliJsonSerializerContext.cs (2)
93[JsonSerializable(typeof(ResourceInfoJson))] 94[JsonSerializable(typeof(ResourceInfoJson[]))]
OtlpCliJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
38if (type == typeof(global::Aspire.Cli.Otlp.ResourceInfoJson)) 42if (type == typeof(global::Aspire.Cli.Otlp.ResourceInfoJson[]))
OtlpCliJsonSerializerContext.ResourceInfoJson.g.cs (41)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Otlp.ResourceInfoJson>? _ResourceInfoJson; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Otlp.ResourceInfoJson> ResourceInfoJson 22get => _ResourceInfoJson ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Otlp.ResourceInfoJson>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Otlp.ResourceInfoJson)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Otlp.ResourceInfoJson> Create_ResourceInfoJson(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Otlp.ResourceInfoJson>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Otlp.ResourceInfoJson> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Otlp.ResourceInfoJson> 35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Otlp.ResourceInfoJson).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Cli.Otlp.ResourceInfoJson>(options, objectInfo); 56DeclaringType = typeof(global::Aspire.Cli.Otlp.ResourceInfoJson), 58Getter = static obj => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).Name, 59Setter = static (obj, value) => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).Name = value!, 66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Otlp.ResourceInfoJson).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Aspire.Cli.Otlp.ResourceInfoJson), 80Getter = static obj => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).InstanceId, 81Setter = static (obj, value) => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).InstanceId = value!, 88AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Otlp.ResourceInfoJson).GetProperty("InstanceId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Aspire.Cli.Otlp.ResourceInfoJson), 100Getter = static obj => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).DisplayName, 101Setter = static (obj, value) => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).DisplayName = value!, 108AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Otlp.ResourceInfoJson).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 120DeclaringType = typeof(global::Aspire.Cli.Otlp.ResourceInfoJson), 122Getter = static obj => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).HasLogs, 123Setter = static (obj, value) => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).HasLogs = value!, 130AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Otlp.ResourceInfoJson).GetProperty("HasLogs", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 140DeclaringType = typeof(global::Aspire.Cli.Otlp.ResourceInfoJson), 142Getter = static obj => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).HasTraces, 143Setter = static (obj, value) => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).HasTraces = value!, 150AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Otlp.ResourceInfoJson).GetProperty("HasTraces", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 160DeclaringType = typeof(global::Aspire.Cli.Otlp.ResourceInfoJson), 162Getter = static obj => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).HasMetrics, 163Setter = static (obj, value) => ((global::Aspire.Cli.Otlp.ResourceInfoJson)obj).HasMetrics = value!, 170AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Otlp.ResourceInfoJson).GetProperty("HasMetrics", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 180private void ResourceInfoJsonSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Otlp.ResourceInfoJson? value) 190string __value_Name = ((global::Aspire.Cli.Otlp.ResourceInfoJson)value).Name; 195string __value_InstanceId = ((global::Aspire.Cli.Otlp.ResourceInfoJson)value).InstanceId; 200string __value_DisplayName = ((global::Aspire.Cli.Otlp.ResourceInfoJson)value).DisplayName; 205writer.WriteBoolean(PropName_hasLogs, ((global::Aspire.Cli.Otlp.ResourceInfoJson)value).HasLogs); 206writer.WriteBoolean(PropName_hasTraces, ((global::Aspire.Cli.Otlp.ResourceInfoJson)value).HasTraces); 207writer.WriteBoolean(PropName_hasMetrics, ((global::Aspire.Cli.Otlp.ResourceInfoJson)value).HasMetrics);
OtlpCliJsonSerializerContext.ResourceInfoJsonArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Otlp.ResourceInfoJson[]>? _ResourceInfoJsonArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Otlp.ResourceInfoJson[]> ResourceInfoJsonArray 22get => _ResourceInfoJsonArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Otlp.ResourceInfoJson[]>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Otlp.ResourceInfoJson[])); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Otlp.ResourceInfoJson[]> Create_ResourceInfoJsonArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Otlp.ResourceInfoJson[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Otlp.ResourceInfoJson[]> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Aspire.Cli.Otlp.ResourceInfoJson[]> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Aspire.Cli.Otlp.ResourceInfoJson>(options, info); 45private void ResourceInfoJsonArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Otlp.ResourceInfoJson[]? value)