File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
tests/Tests.CodeOfChaos.Extensions.AspNetCore Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 66using Microsoft . Extensions . DependencyInjection ;
77using Microsoft . Extensions . Logging ;
88using Serilog ;
9- using Serilog . Core ;
10- using Serilog . Events ;
119using ILogger = Serilog . ILogger ;
1210
1311namespace 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- }
You can’t perform that action at this time.
0 commit comments