Click or drag to resize

INamedItemFactoryTInstanceType, TDefinitionType Interface

Note: This API is now obsolete.

Represents a factory of named items (such as targets, layouts, layout renderers, etc.).

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 interface INamedItemFactory<TInstanceType, TDefinitionType>
where TInstanceType : class

Type Parameters

TInstanceType
Base type for each item instance.
TDefinitionType
Item definition type (typically Type).

The INamedItemFactoryTInstanceType, TDefinitionType type exposes the following members.

Methods
  NameDescription
Public methodCreateInstance
Creates item instance.
Public methodRegisterDefinition
Registers new item definition.
Public methodTryCreateInstance
Tries to create an item instance.
Public methodTryGetDefinition
Tries to get registered item definition.
Top
See Also