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