PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomLog­Event­Metadata
Open sandboxFocus

LogEventMetadata Class

Defines how the raw CLR object stored in a LogEventData is translated into a set of visitable properties and an expression that is accessible from the transaction policy expressions.

Inheritance
LogEventMetadata
Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common.dll
Syntax
public class LogEventMetadata : Object

Constructors

Name Description
LogEventMetadata(String)

Initializes a new LogEventMetadata.

Properties

Name Description
Name

Gets the name of the current LogEventMetadata. This property may be undefined. It must be defined when the LogEventData must be available for evaluation from transaction policy expressions. In this case, the type of expression model (i.e. the generic parameter of LogEventMetadata<TExpressionModel>) must be identical for identical values of the Name property.

Methods

Name Description
GetPropertyOptions(String)

Gets the options of a given property.

HasInheritedProperty(Object)

Determines if the current LogEventMetadata contains any inherited property. The implementation of this method must not allocate heap memory.

VisitProperties<TVisitorState>(Object, ILoggingPropertyVisitor<TVisitorState>, ref TVisitorState, in LoggingPropertyVisitorOptions)

Invokes an action for each property in the raw CLR object of a LogEventData.