PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­FrameworkAsp­Net­Framework­Request­Metadata<T>Visit­Properties
Open sandboxFocus

AspNetFrameworkRequestMetadata<T>.VisitProperties Method

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.

Declaration
protected virtual void VisitProperties<TVisitorState>(HttpContext httpContext, ILoggingPropertyVisitor<TVisitorState> visitor, ref TVisitorState visitorState, in LoggingPropertyVisitorOptions visitorOptions)
Parameters
Type Name Description
HttpContext httpContext
ILoggingPropertyVisitor<TVisitorState> visitor

The visitor whose Visit<TValue>(String, TValue, in LoggingPropertyOptions, ref TState) method is invoked.

TVisitorState visitorState

An opaque state passed to the visitor.

LoggingPropertyVisitorOptions visitorOptions

Visitor options.

Type Parameters
Name Description
TVisitorState

The type of the opaque state passed to visitor.

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

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

Declaration
public sealed override void VisitProperties<TVisitorState>(object data, ILoggingPropertyVisitor<TVisitorState> visitor, ref TVisitorState visitorState, in LoggingPropertyVisitorOptions visitorOptions = null)
Parameters
Type Name Description
Object data

The raw CLR object, typically Data.

ILoggingPropertyVisitor<TVisitorState> visitor

The visitor.

TVisitorState visitorState

An opaque value passed to visitor.

LoggingPropertyVisitorOptions visitorOptions

Determines which properties need to be visited. By default, all properties are visited.

Type Parameters
Name Description
TVisitorState

The type of the visitorState parameter, an opaque value passed to visitor.