using System; namespace Microsoft.Extensions.Logging.Log4Net.AspNetCore.Scope { /// /// A logger scope that does not save any information and does not need to be disposed. /// internal class NullScope : IDisposable { /// /// The singleton instance that represent every . /// internal static NullScope Instance { get; } = new NullScope(); /// /// Constructor that prevents external instantiation. /// private NullScope() { } /// public void Dispose() { // This is a null scope so we need to dispose nothing. } } }