1 write to Write
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\LogRecord.cs (1)
18Write = write;
23 references to Write
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (6)
HubConnectionTests.cs (6)
1389var errorLog = server.GetLogs().SingleOrDefault(r => r.Write.EventId.Name == "FailedWritingMessage"); 1391Assert.Contains(exceptionSubstring, errorLog.Write.Exception.Message); 1392Assert.Equal(LogLevel.Error, errorLog.Write.LogLevel); 1443var errorLog = server.GetLogs().SingleOrDefault(r => r.Write.EventId.Name == "FailedWritingMessage"); 1445Assert.Contains(exceptionSubstring, errorLog.Write.Exception.Message); 1446Assert.Equal(LogLevel.Error, errorLog.Write.LogLevel);
Microsoft.AspNetCore.SignalR.Client.Tests (6)
HubConnectionTests.Reconnect.cs (6)
361var attemptsLog = logs.SingleOrDefault(r => r.Write.EventId.Name == "ReconnectAttemptsExhausted"); 363Assert.Contains($"after {reconnectingCount} failed attempts", attemptsLog.Write.Message); 364Assert.Equal(LogLevel.Information, attemptsLog.Write.LogLevel); 366var waitingLog = logs.SingleOrDefault(r => r.Write.EventId.Name == "AwaitingReconnectRetryDelay"); 368Assert.Contains($"Reconnect attempt number 1 will start in ", waitingLog.Write.Message); 369Assert.Equal(LogLevel.Trace, waitingLog.Write.LogLevel);
Microsoft.AspNetCore.SignalR.Tests.Utils (11)
ServerLogScope.cs (1)
38var write = logRecord.Write;
src\Shared\SignalR\InProcessTestServer.cs (7)
144builder.AppendLine(FormattableString.Invariant($"{log.Timestamp:O} {log.Write.LoggerName} {log.Write.LogLevel}: {log.Write.Formatter(log.Write.State, log.Write.Exception)}")); 145if (log.Write.Exception != null) 147var message = log.Write.Exception.ToString();
src\Shared\SignalR\VerifyNoErrorScope.cs (3)
36var results = _sink.GetLogs().Where(w => w.Write.LogLevel >= LogLevel.Error).ToList(); 40results = results.Where(w => !_expectedErrorsFilter(w.Write)).ToList(); 49var r = record.Write;