Class AspNetCoreRequestMetadata<T>
Inheritance
AspNetCoreRequestMetadata<T>
Assembly: PostSharp.Patterns.Diagnostics.Adapters.AspNetCore.dll
Syntax
public abstract class AspNetCoreRequestMetadata<T> : LogEventMetadata<T>
Type Parameters
Name |
Description |
T |
The type of the expression model.
|
Constructors
Methods
Name |
Description |
HasInheritedProperty(HttpContext)
|
Determines if a given HttpContext defines inherited properties. The default implementation
returns true if the request has a Correlation-Context header.
|
HasInheritedProperty(Object)
|
Determines if the current LogEventMetadata contains any inherited property. The implementation of this method must not allocate heap memory.
|
VisitProperties<TVisitorState>(HttpContext, ILoggingPropertyVisitor<TVisitorState>, ref TVisitorState, in LoggingPropertyVisitorOptions)
|
Invokes the Visit<TValue>(String, TValue, in LoggingPropertyOptions, ref TState)
method for all properties defined from a given HttpContext.
|
VisitProperties<TVisitorState>(Object, ILoggingPropertyVisitor<TVisitorState>, ref TVisitorState, in LoggingPropertyVisitorOptions)
|
Invokes an action for each property in the raw CLR object of a LogEventData.
|
VisitProperty<TVisitorState, TValue>(String, TValue, ILoggingPropertyVisitor<TVisitorState>, ref TVisitorState, in LoggingPropertyOptions)
|
Called by VisitProperties<TVisitorState>(HttpContext, ILoggingPropertyVisitor<TVisitorState>, ref TVisitorState, in LoggingPropertyVisitorOptions)
for each property. The default implementation filters out null or empty properties. You can override this method
to change the default filtering.
|