1 instantiation of LogMessage
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
97
var logMessage = new
LogMessage
21 references to LogMessage
InMemory.FunctionalTests (21)
Http2\Http2ConnectionTests.cs (2)
5308
var
logMessage = LogMessages.Single(m => m.EventId == 20);
5326
var
logMessage = LogMessages.Single(m => m.LogLevel >= LogLevel.Information);
Http2\Http2TestBase.cs (1)
1324
var
message = Assert.Single(LogMessages, m => m.Exception is TException);
Http3\Http3TestBase.cs (1)
141
var
message = Assert.Single(LogMessages, m => m.Exception != null && exceptionType.IsAssignableFrom(m.Exception.GetType()));
ResponseTests.cs (6)
939
var
logMessage = Assert.Single(LogMessages, message => message.EventId.Name == "ConnectionHeadResponseBodyWrite");
982
var
logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error);
1021
var
logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error);
1061
var
logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error);
1096
var
logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error);
2079
while (LogMessages.TryDequeue(out
var
message))
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (8)
20
private Func<
LogMessage
, bool> _messageFilter;
21
private TaskCompletionSource<
LogMessage
> _messageFilterTcs;
29
public ConcurrentQueue<
LogMessage
> Messages { get; } = new ConcurrentQueue<
LogMessage
>();
39
public Task<
LogMessage
> WaitForMessage(Func<
LogMessage
, bool> messageFilter)
46
_messageFilterTcs = new TaskCompletionSource<
LogMessage
>(TaskCreationOptions.RunContinuationsAsynchronously);
97
var
logMessage = new LogMessage
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (3)
18
public ConcurrentQueue<
LogMessage
> LogMessages => TestApplicationErrorLogger.Messages;
34
public Task<
LogMessage
> WaitForLogMessage(Func<
LogMessage
, bool> messageFilter)