Skip to content

Commit 12407f7

Browse files
committed
Feedback
1 parent a41b20b commit 12407f7

File tree

3 files changed

+11
-20
lines changed

3 files changed

+11
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using Microsoft.Extensions.Logging;
5-
64
namespace Aspire.Cli.Backchannel;
75

86
/// <summary>
@@ -20,12 +18,3 @@ internal sealed class DisplayLineState(string stream, string line)
2018
/// </summary>
2119
public string Line { get; } = line;
2220
}
23-
24-
internal class BackchannelLogEntry
25-
{
26-
public required EventId EventId { get; set; }
27-
public required LogLevel LogLevel { get; set; }
28-
public required string Message { get; set; }
29-
public required DateTimeOffset Timestamp { get; set; }
30-
public required string CategoryName { get; set; }
31-
}

src/Aspire.Hosting/Backchannel/BackchannelDataTypes.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ namespace Aspire.Cli.Backchannel;
99
namespace Aspire.Hosting.Backchannel;
1010
#endif
1111

12+
using Microsoft.Extensions.Logging;
13+
1214
/// <summary>
1315
/// Represents the state of a resource reported via RPC.
1416
/// </summary>
@@ -138,3 +140,12 @@ internal static class CompletionStates
138140
public const string CompletedWithWarning = "CompletedWithWarning";
139141
public const string CompletedWithError = "CompletedWithError";
140142
}
143+
144+
internal class BackchannelLogEntry
145+
{
146+
public required EventId EventId { get; set; }
147+
public required LogLevel LogLevel { get; set; }
148+
public required string Message { get; set; }
149+
public required DateTimeOffset Timestamp { get; set; }
150+
public required string CategoryName { get; set; }
151+
}

src/Aspire.Hosting/Backchannel/BackchannelLoggerProvider.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,3 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
8888
}
8989
}
9090
}
91-
92-
internal class BackchannelLogEntry
93-
{
94-
public required EventId EventId { get; set; }
95-
public required LogLevel LogLevel { get; set; }
96-
public required string Message { get; set; }
97-
public required DateTimeOffset Timestamp { get; set; }
98-
public required string CategoryName { get; set; }
99-
}

0 commit comments

Comments
 (0)