Skip to content

Commit

Permalink
Merge branch 'dev' into v1.5.37.1-release-notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb authored Feb 5, 2025
2 parents dd103d1 + aa8344e commit 8a94324
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Akka.Hosting.TestKit/Internals/XUnitLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public bool IsEnabled(LogLevel logLevel)

public IDisposable BeginScope<TState>(TState state)
{
throw new NotImplementedException();
return NullScope.Instance;
}

private static bool TryFormatMessage<TState>(
Expand All @@ -91,6 +91,13 @@ private static bool TryFormatMessage<TState>(
result = formattedMessage;
return true;
}

private class NullScope : IDisposable
{
private NullScope() { }
public static NullScope Instance { get; } = new NullScope();
public void Dispose() { }
}
}
}

0 comments on commit 8a94324

Please sign in to comment.