AspNetCoreRequestMetadata<T>.VisitProperty<TVisitorState, TValue> Method |
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.
Namespace: PostSharp.Patterns.Diagnostics.Adapters.AspNetCore
Assembly: PostSharp.Patterns.Diagnostics.Adapters.AspNetCore (in PostSharp.Patterns.Diagnostics.Adapters.AspNetCore.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
protected virtual void VisitProperty<TVisitorState, TValue>( string name, TValue value, ILoggingPropertyVisitor<TVisitorState> visitor, ref TVisitorState visitorState, in LoggingPropertyOptions options = null )
Parameters
- name
- Type: System.String
Property name. - value
- Type: TValue
Property value. - visitor
- Type: PostSharp.Patterns.Diagnostics.Custom.ILoggingPropertyVisitor<TVisitorState>
The visitor whose Visit<TValue>(String, TValue, LoggingPropertyOptions, TState) method is invoked. - visitorState
- Type: TVisitorState
An opaque state passed to the visitor. - options (Optional)
- Type: PostSharp.Patterns.Diagnostics.Custom.LoggingPropertyOptionsInAttribute
Property options.
Type Parameters
- TVisitorState
- The type of the opaque state passed to visitor.
- TValue
- The type of the property.