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