 | ConfigurationItemFactoryPreloadAssembly Method |
Note: This API is now obsolete.
Call Preload for NLogPackageLoader
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.2.0+eed5f76d158dbcaef9326f7a0e1c281adad171e8
Syntax[ObsoleteAttribute("Instead use NLog.LogManager.Setup().SetupExtensions(). Marked obsolete with NLog v5.2")]
public void PreloadAssembly(
Type[] typesToScan
)
<ObsoleteAttribute("Instead use NLog.LogManager.Setup().SetupExtensions(). Marked obsolete with NLog v5.2")>
Public Sub PreloadAssembly (
typesToScan As Type()
)
Dim instance As ConfigurationItemFactory
Dim typesToScan As Type()
instance.PreloadAssembly(typesToScan)
[<ObsoleteAttribute("Instead use NLog.LogManager.Setup().SetupExtensions(). Marked obsolete with NLog v5.2")>]
member PreloadAssembly :
typesToScan : Type[] -> unit
Parameters
- typesToScan
- Type: SystemType
Remarks
Every package could implement a class "NLogPackageLoader" (namespace not important) with the public static method "Preload" (no arguments)
This method will be called just before registering all items in the assembly.
See Also