Click or drag to resize

ServiceRepositoryRegisterService Method

Registers instance of singleton object for use in NLog

Namespace:  NLog.Config
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public abstract void RegisterService(
	Type type,
	Object instance
)

Parameters

type
Type: SystemType
Type of service/interface to register
instance
Type: SystemObject
Instance of service
See Also