9 instantiations of ResourceLogLine
Aspire.Cli.Tests (9)
Commands\LogsCommandTests.cs (3)
615
new
ResourceLogLine
622
new
ResourceLogLine
629
new
ResourceLogLine
Mcp\ListConsoleLogsToolTests.cs (6)
87
new
ResourceLogLine
{ ResourceName = "api-service", LineNumber = 1, Content = "Starting application...", IsError = false },
88
new
ResourceLogLine
{ ResourceName = "api-service", LineNumber = 2, Content = "Application started", IsError = false },
89
new
ResourceLogLine
{ ResourceName = "other-service", LineNumber = 1, Content = "Different service log", IsError = false }
123
new
ResourceLogLine
{ ResourceName = "api-service", LineNumber = 1, Content = "Test log line", IsError = false }
153
new
ResourceLogLine
{ ResourceName = "api-service", LineNumber = 1, Content = "2024-01-15T10:30:00.123Z Log message after timestamp", IsError = false }
182
new
ResourceLogLine
{ ResourceName = "api-service", LineNumber = 1, Content = "\u001b[32mGreen text\u001b[0m normal text", IsError = false }
22 references to ResourceLogLine
aspire (19)
Backchannel\AppHostAuxiliaryBackchannel.cs (9)
340
public async IAsyncEnumerable<
ResourceLogLine
> GetResourceLogsAsync(
349
IAsyncEnumerable<
ResourceLogLine
>? logLines;
352
logLines = await rpc.InvokeWithCancellationAsync<IAsyncEnumerable<
ResourceLogLine
>>(
373
await foreach (
var
logLine in logLines.WithCancellation(cancellationToken).ConfigureAwait(false))
578
public IAsyncEnumerable<
ResourceLogLine
> GetConsoleLogsV2Async(
593
private async IAsyncEnumerable<
ResourceLogLine
> GetConsoleLogsV2InternalAsync(
601
IAsyncEnumerable<
ResourceLogLine
>? logLines;
604
logLines = await rpc.InvokeWithCancellationAsync<IAsyncEnumerable<
ResourceLogLine
>>(
619
await foreach (
var
logLine in logLines.WithCancellation(cancellationToken).ConfigureAwait(false))
Backchannel\BackchannelJsonSerializerContext.cs (4)
51
[JsonSerializable(typeof(
ResourceLogLine
))]
52
[JsonSerializable(typeof(
ResourceLogLine
[]))]
53
[JsonSerializable(typeof(IAsyncEnumerable<
ResourceLogLine
>))]
54
[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<
ResourceLogLine
>))]
Backchannel\IAppHostAuxiliaryBackchannel.cs (1)
77
IAsyncEnumerable<
ResourceLogLine
> GetResourceLogsAsync(
Commands\LogsCommand.cs (4)
273
await foreach (
var
logLine in connection.GetResourceLogsAsync(resourceName, follow: true, cancellationToken).ConfigureAwait(false))
295
await foreach (
var
logLine in connection.GetResourceLogsAsync(resourceName, follow: false, cancellationToken).ConfigureAwait(false))
303
/// Parses a <see cref="
ResourceLogLine
"/> into a <see cref="LogEntry"/> with the resolved resource name
306
private static LogEntry ParseLogLine(
ResourceLogLine
logLine, LogParser logParser, IReadOnlyList<ResourceSnapshot> snapshots)
Mcp\Tools\ListConsoleLogsTool.cs (1)
68
await foreach (
var
logLine in connection.GetResourceLogsAsync(resourceName, follow: false, cancellationToken).ConfigureAwait(false))
Aspire.Cli.Tests (3)
TestServices\TestAppHostAuxiliaryBackchannel.cs (3)
37
public List<
ResourceLogLine
> LogLines { get; set; } = [];
79
public async IAsyncEnumerable<
ResourceLogLine
> GetResourceLogsAsync(
88
foreach (
var
line in lines)