LoggingContext.VisitProperties Method |
Name | Description | |
---|---|---|
VisitProperties(Action<String, Object>, Boolean) |
Invokes a delegate each property on the current context, and, optionally, for inherited properties in ancestor contexts.
This offers a simple way to visit properties, but it has a performance overhead compared to VisitProperties<TState>(ILoggingPropertyVisitor<TState>, TState, LoggingPropertyVisitorOptions)
because it is weakly typed and cause the allocation of a closure class to build the action. It also does not expose the LoggingPropertyOptions.
| |
VisitProperties<TState>(ILoggingPropertyVisitor<TState>, TState, LoggingPropertyVisitorOptions) |
Invokes the Visit<TValue>(String, TValue, LoggingPropertyOptions, TState) method
of an interface implementation for each property on the current context, and, optionally, for inherited properties in ancestor contexts.
|