1 instantiation of LogMessage
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
97
var logMessage = new
LogMessage
16 references to LogMessage
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (16)
AddressBinderTests.cs (2)
193
var
log = Assert.Single(logger.Messages);
221
var
log = Assert.Single(logger.Messages);
KestrelServerTests.cs (3)
152
var
warning = testLogger.Messages.Single(log => log.LogLevel == LogLevel.Warning);
195
private static (IEnumerable<TestApplicationErrorLogger.
LogMessage
> warnings, IEnumerable<TestApplicationErrorLogger.
LogMessage
> infos) GetNoTlsLogging(HttpProtocols? protocols)
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)