 | ServiceRepositoryGetService Method |
Gets the service object of the specified type.
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxpublic abstract Object GetService(
Type serviceType
)
Public MustOverride Function GetService (
serviceType As Type
) As Object
Dim instance As ServiceRepository
Dim serviceType As Type
Dim returnValue As Object
returnValue = instance.GetService(serviceType)
abstract GetService :
serviceType : Type -> Object
Parameters
- serviceType
- Type: SystemType
Return Value
Type:
ObjectImplements
IServiceProviderGetService(Type)
RemarksAvoid calling this while handling a LogEvent, since random deadlocks can occur.
See Also