Skip to content

Commit 8047bdf

Browse files
committed
Refactor: Remove unused DelegatingSink helper class in logging override tests
1 parent edd4994 commit 8047bdf

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tests/Tests.CodeOfChaos.Extensions.AspNetCore/LoggingOverrideExtensionTests.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
using Microsoft.Extensions.DependencyInjection;
77
using Microsoft.Extensions.Logging;
88
using Serilog;
9-
using Serilog.Core;
10-
using Serilog.Events;
119
using ILogger=Serilog.ILogger;
1210

1311
namespace Tests.CodeOfChaos.Extensions.AspNetCore;
@@ -77,16 +75,3 @@ await Assert.That(logger)
7775
.Because("Serilog should replace the existing providers when overriding logging.");
7876
}
7977
}
80-
81-
// ---------------------------------------------------------------------------------------------------------------------
82-
// Helper Classes
83-
// ---------------------------------------------------------------------------------------------------------------------
84-
public class DelegatingSink : ILogEventSink {
85-
private readonly Action<LogEvent> _write;
86-
87-
public DelegatingSink(Action<LogEvent> write) {
88-
_write = write ?? throw new ArgumentNullException(nameof(write));
89-
}
90-
91-
public void Emit(LogEvent logEvent) => _write.Invoke(logEvent);
92-
}

0 commit comments

Comments
 (0)