Skip to content

bfb97955 6c52 ae37 2bf3 ad3d88aca7cf

Axel Kesseler edited this page Mar 1, 2023 · 2 revisions

LoggingScope Class

This internal class provides functionality to manage logging scopes.

Inheritance Hierarchy

System.Object
  Plexdata.LogWriter.Internals.Logging.LoggingScope
Namespace: Plexdata.LogWriter.Internals.Logging
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1

Syntax

C#

internal class LoggingScope : IDisposable

The LoggingScope type exposes the following members.

Constructors

 

Name Description
Public method LoggingScope() The default constructor initializes instances of this class.
Public method LoggingScope(Object) This constructor initializes instances of this class using provided value.
  Back to Top

Properties

 

Name Description
Private property DebuggerDisplay Gets a debug representation of this instance.
Public property IsDisposed Determines whether an instance of this class has been disposed already.
Public property Value An object representing the assigned scope.
  Back to Top

Methods

 

Name Description
Public method Dispose() Frees all disposable instance resources.
Protected method Dispose(Boolean) Frees all disposable instance resources.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize The class destructor. (Overrides Object.Finalize().)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToDisplay Returns the scope's string representation.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Events

 

Name Description
Public event Disposing Occurs when the object is being disposed.
  Back to Top

Extension Methods

 

Name Description
Public Extension Method SafeDispose Ensures a safe object disposal. (Defined by DisposableExtension.)
  Back to Top

Remarks

Such a logging scope is enabled by calling method CreateScope(TScope)(TScope) of class LoggerBase(TSettings).

See Also

Reference

Plexdata.LogWriter.Internals.Logging Namespace

Clone this wiki locally