| SetupExtensionsBuilderExtensionsAutoLoadExtensions Method |
Enable/disables autoloading of NLog extensions by scanning and loading available assemblies
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public static ISetupExtensionsBuilder AutoLoadExtensions(
this ISetupExtensionsBuilder setupBuilder
)
<ExtensionAttribute>
Public Shared Function AutoLoadExtensions (
setupBuilder As ISetupExtensionsBuilder
) As ISetupExtensionsBuilder
Dim setupBuilder As ISetupExtensionsBuilder
Dim returnValue As ISetupExtensionsBuilder
returnValue = setupBuilder.AutoLoadExtensions()
[<ExtensionAttribute>]
static member AutoLoadExtensions :
setupBuilder : ISetupExtensionsBuilder -> ISetupExtensionsBuilder
Parameters
- setupBuilder
- Type: NLog.ConfigISetupExtensionsBuilder
Return Value
Type:
ISetupExtensionsBuilderUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ISetupExtensionsBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
Disabled by default as it can give a huge performance hit during startup. Recommended to keep it disabled especially when running in the cloud.
See Also