Click or drag to resize

ServiceRepositoryGetService Method

Gets the service object of the specified type.

Namespace:  NLog.Config
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public abstract Object GetService(
	Type serviceType
)

Parameters

serviceType
Type: SystemType

Return Value

Type: Object

Implements

IServiceProviderGetService(Type)
Remarks
Avoid calling this while handling a LogEvent, since random deadlocks can occur.
See Also