Open sandboxFocus

Class LogEventMetadata

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
LogEventMetadata<TExpressionModel>
Namespace: Flashtrace.Records
Assembly: Flashtrace.dll
Syntax
public class LogEventMetadata

Constructors

Name Description
LogEventMetadata(string?)

Initializes a new instance of the LogEventMetadata class.

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.