 | ServiceRepositoryRegisterService Method |
Registers instance of singleton object for use in NLog
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic abstract void RegisterService(
Type type,
Object instance
)
Public MustOverride Sub RegisterService (
type As Type,
instance As Object
)
Dim instance As ServiceRepository
Dim type As Type
Dim instance As Object
instance.RegisterService(type, instance)
abstract RegisterService :
type : Type *
instance : Object -> unit
Parameters
- type
- Type: SystemType
Type of service/interface to register - instance
- Type: SystemObject
Instance of service
See Also