Click or drag to resize

TargetResolveServiceT Method

Resolve from DI ServiceRepository

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
protected T ResolveService<T>()
where T : class

Type Parameters

T

Return Value

Type: T
Remarks
Avoid calling this while handling a LogEvent, since random deadlocks can occur.
See Also