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