PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / Log­Event­Metadata(TExpression­Model) Class

LogEventMetadata<TExpressionModel> Class

A specialization of LogEventMetadata that specifies the type of the expression model type, i.e. the type exposed to transaction policy expressions.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
public abstract class LogEventMetadata<TExpressionModel> : LogEventMetadata

Type Parameters

The type of the expression model type, i.e. the type exposed to transaction policy expressions

The LogEventMetadata<TExpressionModel> type exposes the following members.

Protected methodLogEventMetadata<TExpressionModel>
Initializes a new LogEventMetadata.
Public propertyName
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.
(Inherited from LogEventMetadata.)
Public methodGetExpressionModel
Gets the object that must be exposed to the expressions in transaction policies.
Protected methodGetPropertyOptions
Gets the options of a given property.
(Inherited from LogEventMetadata.)
Public methodHasInheritedProperty
Determines if the current LogEventMetadata contains any inherited property. The implementation of this method must not allocate heap memory.
(Inherited from LogEventMetadata.)
Public methodVisitProperties<TVisitorState>
Invokes an action for each property in the raw CLR object of a LogEventData.
(Inherited from LogEventMetadata.)
See Also