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 look up 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)

Returns the "relay repository" if repositoryName corresponds to it. Otherwise, returns a repository of the type PostSharp.Patterns.Diagnostics.Backends.Log4Net.Log4NetCollectionRepository.

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

The name used to look up the log4net.Repository.ILoggerRepository.

Returns
Type Description
ILoggerRepository

The named log4net.Repository.ILoggerRepository.

Implements