2 instantiations of BackchannelLogEntry
aspire (1)
BackchannelJsonSerializerContext.BackchannelLogEntry.g.cs (1)
32ObjectWithParameterizedConstructorCreator = 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)
193yield return new BackchannelLogEntry
99 references to BackchannelLogEntry
aspire (94)
Backchannel\AppHostBackchannel.cs (4)
19IAsyncEnumerable<BackchannelLogEntry> GetAppHostLogEntriesAsync(CancellationToken cancellationToken); 66public async IAsyncEnumerable<BackchannelLogEntry> GetAppHostLogEntriesAsync([EnumeratorCancellation] CancellationToken cancellationToken) 73var logEntries = await rpc.InvokeWithCancellationAsync<IAsyncEnumerable<BackchannelLogEntry>>( 80await foreach (var entry in logEntries.WithCancellation(cancellationToken))
Backchannel\BackchannelJsonSerializerContext.cs (2)
21[JsonSerializable(typeof(IAsyncEnumerable<BackchannelLogEntry>))] 22[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<BackchannelLogEntry>))]
BackchannelJsonSerializerContext.BackchannelLogEntry.g.cs (36)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.BackchannelLogEntry>? _BackchannelLogEntry; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.BackchannelLogEntry> BackchannelLogEntry 22get => _BackchannelLogEntry ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.BackchannelLogEntry> Create_BackchannelLogEntry(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.BackchannelLogEntry>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.BackchannelLogEntry> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.BackchannelLogEntry> 35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).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.Backchannel.BackchannelLogEntry>(options, objectInfo); 56DeclaringType = typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry), 58Getter = static obj => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).EventId, 59Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).EventId = value!, 66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).GetProperty("EventId", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.Logging.EventId), global::System.Array.Empty<global::System.Type>(), null), 77DeclaringType = typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry), 79Getter = static obj => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).LogLevel, 80Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).LogLevel = value!, 87AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).GetProperty("LogLevel", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.Logging.LogLevel), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry), 100Getter = static obj => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).Message, 101Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).Message = value!, 108AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 121DeclaringType = typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry), 123Getter = static obj => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).Timestamp, 124Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).Timestamp = value!, 131AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).GetProperty("Timestamp", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null), 142DeclaringType = typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry), 144Getter = static obj => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).CategoryName, 145Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)obj).CategoryName = value!, 152AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).GetProperty("CategoryName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 165private void BackchannelLogEntrySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.BackchannelLogEntry? value) 176EventIdSerializeHandler(writer, ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)value).EventId); 178global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)value).LogLevel, LogLevel); 179writer.WriteString(PropName_Message, ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)value).Message); 180writer.WriteString(PropName_Timestamp, ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)value).Timestamp); 181writer.WriteString(PropName_CategoryName, ((global::Aspire.Cli.Backchannel.BackchannelLogEntry)value).CategoryName);
BackchannelJsonSerializerContext.EnumeratorResultsBackchannelLogEntry.g.cs (25)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>? _EnumeratorResultsBackchannelLogEntry; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> EnumeratorResultsBackchannelLogEntry 22get => _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>)); 25private 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) 27if (!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)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> 32ObjectWithParameterizedConstructorCreator = 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] }, 35ConstructorAttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>(options, objectInfo); 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> 56DeclaringType = typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>), 58Getter = static obj => ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)obj).Values, 66AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>).GetProperty("Values", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>>(options, info0); 76DeclaringType = typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>), 78Getter = static obj => ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)obj).Finished, 86AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>).GetProperty("Finished", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 97private void EnumeratorResultsBackchannelLogEntrySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>? value) 108IReadOnlyListBackchannelLogEntrySerializeHandler(writer, ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)value).Values); 109writer.WriteBoolean(PropName_finished, ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)value).Finished); 119ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>),
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (4)
30if (type == typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry)) 90if (type == typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)) 110if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>)) 130if (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; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> IAsyncEnumerableBackchannelLogEntry 22get => _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>)); 25private 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) 27if (!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)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> 35jsonTypeInfo = 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; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> IReadOnlyListBackchannelLogEntry 22get => _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>)); 25private 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) 27if (!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)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>> 35jsonTypeInfo = 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); 45private void IReadOnlyListBackchannelLogEntrySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>? value) 55foreach (global::Aspire.Cli.Backchannel.BackchannelLogEntry element in value)
Commands\RunCommand.cs (1)
433await foreach (var entry in logEntries.WithCancellation(cancellationToken))
Aspire.Cli.Tests (5)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
862public async IAsyncEnumerable<BackchannelLogEntry> GetAppHostLogEntriesAsync([EnumeratorCancellation] CancellationToken cancellationToken)
Commands\RunCommandTests.cs (1)
185private 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))