Open sandboxFocus

Method GetRepository

GetRepository(Assembly)

Gets the log4net.Repository.ILoggerRepository for the specified assembly.

Declaration
public ILoggerRepository GetRepository(Assembly assembly)
Parameters
Type Name Description
Assembly assembly

The assembly to use to lookup to the log4net.Repository.ILoggerRepository

Returns
Type Description
ILoggerRepository

The log4net.Repository.ILoggerRepository for the assembly.

Implements
Remarks

Gets the log4net.Repository.ILoggerRepository for the specified assembly.

How the association between Assembly and log4net.Repository.ILoggerRepository is made is not defined. The implementation may choose any method for this association. The results of this method must be repeatable, i.e. when called again with the same arguments the result must be the save value.

GetRepository(string)

If repositoryName corresponds to the "relay repository", returns that. Otherwise, returns a repository of the type Log4NetCollectionRepository.

Declaration
public ILoggerRepository GetRepository(string repositoryName)
Parameters
Type Name Description
string repositoryName

The name to use to lookup to the log4net.Repository.ILoggerRepository.

Returns
Type Description
ILoggerRepository

The named log4net.Repository.ILoggerRepository.

Implements