A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://nlog-project.org/documentation/v4.7.0/html/M_NLog_Layouts_Layout_Precalculate.htm below:

LayoutPrecalculate Method

Precalculates the layout for the specified log event and stores the result in per-log event cache. Only if the layout doesn't have [ThreadAgnostic] and doesn't contain layouts with [ThreadAgnostic].

Namespace:  NLog.Layouts
Assembly:

NLog (in NLog.dll) Version: 4.7.0+4d138800820311d0b60b6437f1dd2ed1d571d47d

Syntax
public virtual void Precalculate(
	LogEventInfo logEvent
)
Public Overridable Sub Precalculate ( 
	logEvent As LogEventInfo
)

Dim instance As Layout
Dim logEvent As LogEventInfo

instance.Precalculate(logEvent)
abstract Precalculate : 
        logEvent : LogEventInfo -> unit 
override Precalculate : 
        logEvent : LogEventInfo -> unit 
Parameters
logEvent
Type: NLogLogEventInfo
The log event.
Remarks

Calling this method enables you to store the log event in a buffer and/or potentially evaluate it in another thread even though the layout may contain thread-dependent renderer.

See Also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4