2 instantiations of BackchannelLogEntry
aspire (1)
BackchannelJsonSerializerContext.BackchannelLogEntry.g.cs (1)
30ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.BackchannelLogEntry(){ EventId = (global::Microsoft.Extensions.Logging.EventId)args[0], LogLevel = (global::Microsoft.Extensions.Logging.LogLevel)args[1], Message = (string)args[2], Timestamp = (global::System.DateTimeOffset)args[3], CategoryName = (string)args[4] },
Aspire.Cli.Tests (1)
Commands\RunCommandTests.cs (1)
200yield return new BackchannelLogEntry
89 references to BackchannelLogEntry
aspire (84)
Backchannel\AppHostBackchannel.cs (4)
19IAsyncEnumerable<BackchannelLogEntry> GetAppHostLogEntriesAsync(CancellationToken cancellationToken); 65public async IAsyncEnumerable<BackchannelLogEntry> GetAppHostLogEntriesAsync([EnumeratorCancellation] CancellationToken cancellationToken) 72var logEntries = await rpc.InvokeWithCancellationAsync<IAsyncEnumerable<BackchannelLogEntry>>( 79await foreach (var entry in logEntries.WithCancellation(cancellationToken))
Backchannel\BackchannelJsonSerializerContext.cs (2)
20[JsonSerializable(typeof(IAsyncEnumerable<BackchannelLogEntry>))] 21[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<BackchannelLogEntry>))]
BackchannelJsonSerializerContext.BackchannelLogEntry.g.cs (30)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.BackchannelLogEntry>? _BackchannelLogEntry; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.BackchannelLogEntry> BackchannelLogEntry 20get => _BackchannelLogEntry ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.BackchannelLogEntry> Create_BackchannelLogEntry(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.BackchannelLogEntry>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.BackchannelLogEntry> jsonTypeInfo)) 27var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.BackchannelLogEntry> 36jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Cli.Backchannel.BackchannelLogEntry>(options, objectInfo); 53DeclaringType = typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry), 55Getter = static obj => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).EventId, 56Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).EventId = value!, 73DeclaringType = typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry), 75Getter = static obj => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).LogLevel, 76Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).LogLevel = value!, 93DeclaringType = typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry), 95Getter = static obj => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).Message, 96Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).Message = value!, 113DeclaringType = typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry), 115Getter = static obj => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).Timestamp, 116Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).Timestamp = value!, 133DeclaringType = typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry), 135Getter = static obj => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).CategoryName, 136Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).CategoryName = value!, 153private void BackchannelLogEntrySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.BackchannelLogEntry? value) 164EventIdSerializeHandler(writer, ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)value).EventId); 166global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)value).LogLevel, LogLevel); 167writer.WriteString(PropName_Message, ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)value).Message); 168writer.WriteString(PropName_Timestamp, ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)value).Timestamp); 169writer.WriteString(PropName_CategoryName, ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)value).CategoryName);
BackchannelJsonSerializerContext.EnumeratorResultsBackchannelLogEntry.g.cs (21)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>? _EnumeratorResultsBackchannelLogEntry; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> EnumeratorResultsBackchannelLogEntry 20get => _EnumeratorResultsBackchannelLogEntry ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>)Options.GetTypeInfo(typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> Create_EnumeratorResultsBackchannelLogEntry(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> jsonTypeInfo)) 27var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> 30ObjectWithParameterizedConstructorCreator = static args => new global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>(){ Values = (global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)args[0], Finished = (bool)args[1] }, 36jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>(options, objectInfo); 48var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> 53DeclaringType = typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>), 55Getter = static obj => ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)obj).Values, 65properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>(options, info0); 72DeclaringType = typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>), 74Getter = static obj => ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)obj).Finished, 92private void EnumeratorResultsBackchannelLogEntrySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>? value) 103IReadOnlyListBackchannelLogEntrySerializeHandler(writer, ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)value).Values); 104writer.WriteBoolean(PropName_finished, ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)value).Finished); 116ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>),
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (4)
30if (type == typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry)) 86if (type == typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)) 106if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)) 126if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>))
BackchannelJsonSerializerContext.IAsyncEnumerableBackchannelLogEntry.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>? _IAsyncEnumerableBackchannelLogEntry; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> IAsyncEnumerableBackchannelLogEntry 20get => _IAsyncEnumerableBackchannelLogEntry ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> Create_IAsyncEnumerableBackchannelLogEntry(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> jsonTypeInfo)) 27var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> 33jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIAsyncEnumerableInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>, global::Aspire.Cli.Backchannel.BackchannelLogEntry>(options, info);
BackchannelJsonSerializerContext.IReadOnlyListBackchannelLogEntry.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>? _IReadOnlyListBackchannelLogEntry; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> IReadOnlyListBackchannelLogEntry 20get => _IReadOnlyListBackchannelLogEntry ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> Create_IReadOnlyListBackchannelLogEntry(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> jsonTypeInfo)) 27var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> 33jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>, global::Aspire.Cli.Backchannel.BackchannelLogEntry>(options, info); 43private void IReadOnlyListBackchannelLogEntrySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>? value) 53foreach (global::Aspire.Cli.Backchannel.BackchannelLogEntry element in value)
Commands\RunCommand.cs (1)
434await foreach (var entry in logEntries.WithCancellation(cancellationToken))
Aspire.Cli.Tests (5)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
851public async IAsyncEnumerable<BackchannelLogEntry> GetAppHostLogEntriesAsync([EnumeratorCancellation] CancellationToken cancellationToken)
Commands\RunCommandTests.cs (1)
192private async IAsyncEnumerable<BackchannelLogEntry> ReturnLogEntriesUntilCancelledAsync([EnumeratorCancellation] CancellationToken cancellationToken)
TestServices\TestAppHostBackchannel.cs (3)
22public Func<CancellationToken, IAsyncEnumerable<BackchannelLogEntry>>? GetAppHostLogEntriesAsyncCallback { get; set; } 227public async IAsyncEnumerable<BackchannelLogEntry> GetAppHostLogEntriesAsync([EnumeratorCancellation]CancellationToken cancellationToken) 232await foreach (var entry in GetAppHostLogEntriesAsyncCallback.Invoke(cancellationToken))