Click or drag to resize

ThreadAgnosticImmutableAttribute Class

Marks the layout or layout renderer as thread independent - it producing correct results regardless of the thread it's running on. Layout or layout-renderer depends on Properties or Exception, and requires that LogEvent-state is recognized as immutable.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    NLog.ConfigThreadAgnosticImmutableAttribute

Namespace:  NLog.Config
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public sealed class ThreadAgnosticImmutableAttribute : Attribute

The ThreadAgnosticImmutableAttribute type exposes the following members.

Constructors
  NameDescription
Public methodThreadAgnosticImmutableAttribute
Initializes a new instance of the ThreadAgnosticImmutableAttribute class
Top
Remarks
Must be used in combination with ThreadAgnosticAttribute, else it will have no effect
See Also