Enable CA1852 and fix warnings for it by Henr1k80 · Pull Request #2942 · StackExchange/StackExchange.Redis
Expand Up
@@ -78,7 +78,7 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
/// <summary>
/// To save on test time, no reason to spin up n connections just to test n logging implementations...
/// </summary>
private class TestMultiLogger(params ILogger[] loggers) : ILogger
private sealed class TestMultiLogger(params ILogger[] loggers) : ILogger
{
#if NET8_0_OR_GREATER
public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
Expand All
@@ -95,7 +95,7 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
}
}
private class TestLogger : ILogger private sealed class TestLogger : ILogger { private readonly StringBuilder sb = new StringBuilder(); private long _callCount; Expand Down
private class TestLogger : ILogger private sealed class TestLogger : ILogger { private readonly StringBuilder sb = new StringBuilder(); private long _callCount; Expand Down