C# Class NLog.Config.ConfigurationItemFactory

Provides registration information for named items (targets, layouts, layout renderers, etc.) managed by NLog.
Mostrar archivo Open project: NLog/NLog Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clears the contents of all factories.

ConfigurationItemFactory ( ) : System.IO

Initializes a new instance of the ConfigurationItemFactory class.

RegisterItemsFromAssembly ( Assembly assembly ) : void

Registers named items from the assembly.

RegisterItemsFromAssembly ( Assembly assembly, string itemNamePrefix ) : void

Registers named items from the assembly.

RegisterType ( Type type, string itemNamePrefix ) : void

Registers the type.

Private Methods

Method Description
BuildDefaultFactory ( ) : ConfigurationItemFactory

Builds the default configuration item factory.

GetLayoutRenderers ( ) : LayoutRendererFactory

gets the LayoutRenderer factory

not using layoutRenderers due to backwardscomp.

RegisterExtendedItems ( ) : void

Registers items in NLog.Extended.dll using late-bound types, so that we don't need a reference to NLog.Extended.dll.

Method Details

Clear() public method

Clears the contents of all factories.
public Clear ( ) : void
return void

ConfigurationItemFactory() public method

Initializes a new instance of the ConfigurationItemFactory class.
public ConfigurationItemFactory ( ) : System.IO
return System.IO

RegisterItemsFromAssembly() public method

Registers named items from the assembly.
public RegisterItemsFromAssembly ( Assembly assembly ) : void
assembly System.Reflection.Assembly The assembly.
return void

RegisterItemsFromAssembly() public method

Registers named items from the assembly.
public RegisterItemsFromAssembly ( Assembly assembly, string itemNamePrefix ) : void
assembly System.Reflection.Assembly The assembly.
itemNamePrefix string Item name prefix.
return void

RegisterType() public method

Registers the type.
public RegisterType ( Type type, string itemNamePrefix ) : void
type System.Type The type to register.
itemNamePrefix string The item name prefix.
return void