14 instantiations of LogLineJson
aspire (3)
Commands\LogsCommand.cs (2)
215Logs = logLines.Select(l => new LogLineJson 323var logLineJson = new LogLineJson
LogsCommandJsonContext.LogLineJson.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Commands.LogLineJson(){ ResourceName = (string)args[0], Content = (string)args[1], IsError = (bool)args[2] },
Aspire.Cli.Tests (11)
Commands\LogsCommandTests.cs (11)
33var logLine = new LogLineJson 60var logLine = new LogLineJson 79var logLine = new LogLineJson 98var logLine = new LogLineJson 274new LogLineJson { ResourceName = "frontend", Content = "Starting...", IsError = false }, 275new LogLineJson { ResourceName = "frontend", Content = "Ready", IsError = false }, 276new LogLineJson { ResourceName = "backend", Content = "Error occurred", IsError = true } 316new LogLineJson { ResourceName = "frontend", Content = "Line 1", IsError = false }, 317new LogLineJson { ResourceName = "frontend", Content = "Line 2", IsError = false }, 318new LogLineJson { ResourceName = "backend", Content = "Error", IsError = true } 342var logLine = new LogLineJson
54 references to LogLineJson
aspire (44)
Commands\LogsCommand.cs (3)
35public required LogLineJson[] Logs { get; init; } 38[JsonSerializable(typeof(LogLineJson))] 323var logLineJson = new LogLineJson
LogsCommandJsonContext.GetJsonTypeInfo.g.cs (2)
26if (type == typeof(global::Aspire.Cli.Commands.LogLineJson)) 30if (type == typeof(global::Aspire.Cli.Commands.LogLineJson[]))
LogsCommandJsonContext.LogLineJson.g.cs (23)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Commands.LogLineJson>? _LogLineJson; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Commands.LogLineJson> LogLineJson 22get => _LogLineJson ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Commands.LogLineJson>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Commands.LogLineJson)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Commands.LogLineJson> Create_LogLineJson(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Commands.LogLineJson>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Commands.LogLineJson> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Commands.LogLineJson> 35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Commands.LogLineJson).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.Commands.LogLineJson>(options, objectInfo); 56DeclaringType = typeof(global::Aspire.Cli.Commands.LogLineJson), 58Getter = static obj => ((global::Aspire.Cli.Commands.LogLineJson)obj).ResourceName, 66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Commands.LogLineJson).GetProperty("ResourceName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 79DeclaringType = typeof(global::Aspire.Cli.Commands.LogLineJson), 81Getter = static obj => ((global::Aspire.Cli.Commands.LogLineJson)obj).Content, 89AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Commands.LogLineJson).GetProperty("Content", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 102DeclaringType = typeof(global::Aspire.Cli.Commands.LogLineJson), 104Getter = static obj => ((global::Aspire.Cli.Commands.LogLineJson)obj).IsError, 112AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Commands.LogLineJson).GetProperty("IsError", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 123private void LogLineJsonSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Commands.LogLineJson? value) 133string __value_ResourceName = ((global::Aspire.Cli.Commands.LogLineJson)value).ResourceName; 138string __value_Content = ((global::Aspire.Cli.Commands.LogLineJson)value).Content; 143writer.WriteBoolean(PropName_isError, ((global::Aspire.Cli.Commands.LogLineJson)value).IsError);
LogsCommandJsonContext.LogLineJsonArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Commands.LogLineJson[]>? _LogLineJsonArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Commands.LogLineJson[]> LogLineJsonArray 22get => _LogLineJsonArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Commands.LogLineJson[]>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Commands.LogLineJson[])); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Commands.LogLineJson[]> Create_LogLineJsonArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Commands.LogLineJson[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Commands.LogLineJson[]> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Aspire.Cli.Commands.LogLineJson[]> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Aspire.Cli.Commands.LogLineJson>(options, info); 45private void LogLineJsonArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Commands.LogLineJson[]? value)
LogsCommandJsonContext.LogsOutput.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Commands.LogsOutput(){ Logs = (global::Aspire.Cli.Commands.LogLineJson[])args[0] }, 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Commands.LogLineJson[]> 66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Commands.LogsOutput).GetProperty("Logs", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Commands.LogLineJson[]), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Commands.LogLineJson[]>(options, info0); 89global::Aspire.Cli.Commands.LogLineJson[] __value_Logs = ((global::Aspire.Cli.Commands.LogsOutput)value).Logs; 104ParameterType = typeof(global::Aspire.Cli.Commands.LogLineJson[]),
Aspire.Cli.Tests (10)
Commands\LogsCommandTests.cs (10)
33var logLine = new LogLineJson 49var deserialized = JsonSerializer.Deserialize(json, LogsCommandJsonContext.Ndjson.LogLineJson); 60var logLine = new LogLineJson 79var logLine = new LogLineJson 89var deserialized = JsonSerializer.Deserialize(json, LogsCommandJsonContext.Ndjson.LogLineJson); 98var logLine = new LogLineJson 106var deserialized = JsonSerializer.Deserialize(json, LogsCommandJsonContext.Ndjson.LogLineJson); 292var deserialized = JsonSerializer.Deserialize(line, LogsCommandJsonContext.Ndjson.LogLineJson); 342var logLine = new LogLineJson 362var deserialized = JsonSerializer.Deserialize(json, LogsCommandJsonContext.Ndjson.LogLineJson);