Click or drag to resize

LayoutResolveServiceT Method

Resolve from DI ServiceRepository

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
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