diff --git a/src/Akka.Hosting.TestKit/Internals/XUnitLogger.cs b/src/Akka.Hosting.TestKit/Internals/XUnitLogger.cs index f5ce149..eb04b2e 100644 --- a/src/Akka.Hosting.TestKit/Internals/XUnitLogger.cs +++ b/src/Akka.Hosting.TestKit/Internals/XUnitLogger.cs @@ -70,7 +70,7 @@ public bool IsEnabled(LogLevel logLevel) public IDisposable BeginScope(TState state) { - throw new NotImplementedException(); + return NullScope.Instance; } private static bool TryFormatMessage( @@ -91,6 +91,13 @@ private static bool TryFormatMessage( result = formattedMessage; return true; } + + private class NullScope : IDisposable + { + private NullScope() { } + public static NullScope Instance { get; } = new NullScope(); + public void Dispose() { } + } } }