PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­Framework Namespace / Asp­Net­Framework­Request­Metadata(T) Class / Asp­Net­Framework­Request­Metadata(T) Methods

AspNetFrameworkRequestMetadata<T> Methods

The AspNetFrameworkRequestMetadata<T> generic type exposes the following members.

Methods
  NameDescription
Public methodGetExpressionModel
Gets the object that must be exposed to the expressions in transaction policies.
(Inherited from LogEventMetadata<TExpressionModel>.)
Protected methodGetPropertyOptions
Gets the options of a given property.
(Inherited from LogEventMetadata.)
Public methodHasInheritedProperty(Object)
Determines if the current LogEventMetadata contains any inherited property. The implementation of this method must not allocate heap memory.
(Overrides LogEventMetadata.HasInheritedProperty(Object).)
Protected methodHasInheritedProperty(HttpContext)
Determines if a given HttpContext defines inherited properties. The default implementation returns true if the request has a Correlation-Context header.
Public methodVisitProperties<TVisitorState>(Object, ILoggingPropertyVisitor<TVisitorState>, TVisitorState, LoggingPropertyVisitorOptions)
Invokes an action for each property in the raw CLR object of a LogEventData.
(Overrides LogEventMetadata.VisitProperties<TVisitorState>(Object, ILoggingPropertyVisitor<TVisitorState>, TVisitorState, LoggingPropertyVisitorOptions).)
Protected methodVisitProperties<TVisitorState>(HttpContext, ILoggingPropertyVisitor<TVisitorState>, TVisitorState, LoggingPropertyVisitorOptions)
Invokes the Visit<TValue>(String, TValue, LoggingPropertyOptions, TState) method for all properties defined from a given HttpContext.
Public methodVisitProperties<TVisitorState>(Object, ILoggingPropertyVisitor<TVisitorState>, TVisitorState, LoggingPropertyVisitorOptions)
Invokes an action for each property in the raw CLR object of a LogEventData.
(Inherited from LogEventMetadata.)
Protected methodVisitProperty<TVisitorState, TValue>
Called by VisitProperties<TVisitorState>(HttpContext, ILoggingPropertyVisitor<TVisitorState>, TVisitorState, LoggingPropertyVisitorOptions) for each property. The default implementation filters out null or empty properties. You can override this method to change the default filtering.
See Also