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.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
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