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