Click or drag to resize

ServiceRepository Class

Interface to register available configuration objects type
Inheritance Hierarchy
SystemObject
  NLog.ConfigServiceRepository

Namespace:  NLog.Config
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public abstract class ServiceRepository : IServiceProvider

The ServiceRepository type exposes the following members.

Methods
  NameDescription
Public methodGetService
Gets the service object of the specified type.
Public methodRegisterService
Registers instance of singleton object for use in NLog
Top
Extension Methods
  NameDescription
Public Extension MethodSetupNLogServiceLocator
Override the default IServiceProvider used by the NLog ServiceLocator. NLog ServiceLocator uses the IServiceProvider to access context specific services (Ex. IHttpContextAccessor)
(Defined by AspNetExtensions.)
Top
See Also