4 instantiations of ResourceLogBatch
aspire (1)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
861
yield return new
ResourceLogBatch
{ Lines = batch };
Aspire.Cli.Tests (3)
Commands\LogsCommandTests.cs (1)
1239
new
ResourceLogBatch
TestServices\TestAppHostAuxiliaryBackchannel.cs (2)
272
yield return new
ResourceLogBatch
{ Lines = lines.ToArray() };
279
yield return new
ResourceLogBatch
{ Lines = lines.ToArray() };
19 references to ResourceLogBatch
aspire (12)
Backchannel\AppHostAuxiliaryBackchannel.cs (6)
793
public IAsyncEnumerable<
ResourceLogBatch
> GetConsoleLogBatchesAsync(
814
private async IAsyncEnumerable<
ResourceLogBatch
> GetConsoleLogBatchesV3InternalAsync(
822
IAsyncEnumerable<
ResourceLogBatch
>? logBatches;
825
logBatches = await rpc.InvokeStreamingWithProfilingAsync<
ResourceLogBatch
>(
846
await foreach (
var
logBatch in logBatches.WithCancellation(cancellationToken).ConfigureAwait(false))
852
private static async IAsyncEnumerable<
ResourceLogBatch
> BatchLogLinesAsync(
Backchannel\BackchannelJsonSerializerContext.cs (4)
58
[JsonSerializable(typeof(
ResourceLogBatch
))]
59
[JsonSerializable(typeof(
ResourceLogBatch
[]))]
60
[JsonSerializable(typeof(IAsyncEnumerable<
ResourceLogBatch
>))]
61
[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<
ResourceLogBatch
>))]
Backchannel\IAppHostAuxiliaryBackchannel.cs (1)
130
IAsyncEnumerable<
ResourceLogBatch
> GetConsoleLogBatchesAsync(
Commands\LogsCommand.cs (1)
423
await foreach (
var
batch in connection.GetConsoleLogBatchesAsync(request, cancellationToken).ConfigureAwait(false))
Aspire.Cli.Tests (7)
Commands\LogsCommandTests.cs (3)
1662
private static async IAsyncEnumerable<
ResourceLogBatch
> EnumerateLogBatchesAsync(
1663
IEnumerable<
ResourceLogBatch
> logBatches,
1666
foreach (
var
logBatch in logBatches)
Commands\TerminalCommandTests.cs (1)
867
public IAsyncEnumerable<
ResourceLogBatch
> GetConsoleLogBatchesAsync(GetConsoleLogsRequest request, CancellationToken cancellationToken = default)
TestServices\TestAppHostAuxiliaryBackchannel.cs (3)
117
public Func<GetConsoleLogsRequest, CancellationToken, IAsyncEnumerable<
ResourceLogBatch
>>? GetConsoleLogBatchesHandler { get; set; }
245
public async IAsyncEnumerable<
ResourceLogBatch
> GetConsoleLogBatchesAsync(
253
await foreach (
var
batch in GetConsoleLogBatchesHandler(request, cancellationToken).WithCancellation(cancellationToken).ConfigureAwait(false))