Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

DefaultRepositorySelector.GetRepository�Method�(Assembly)

Gets the ILoggerRepository for the specified assembly.

[Visual�Basic]
NotOverridable�Overloads�Public�Function�GetRepository( _
���ByVal repositoryAssembly�As�Assembly�_
)�As�ILoggerRepository�_
����Implements�IRepositorySelector.GetRepository
[C#]
public�ILoggerRepository�GetRepository(
���AssemblyrepositoryAssembly
);

Parameters

repositoryAssembly
The assembly use to lookup the ILoggerRepository.

Return Value

The ILoggerRepository for the assembly

Implements

IRepositorySelector.GetRepository

Remarks

The type of the ILoggerRepository created and the repository to create can be overridden by specifying the RepositoryAttribute attribute on the repositoryAssembly.

The default values are to use the Hierarchy implementation of the ILoggerRepository interface and to use the Name as the name of the repository.

The ILoggerRepository created will be automatically configured using any ConfiguratorAttribute attributes defined on the repositoryAssembly.

Exceptions

Exception TypeCondition
ArgumentNullExceptionrepositoryAssembly is a null reference (Nothing in Visual Basic).

See Also

DefaultRepositorySelector Class | log4net.Core Namespace | DefaultRepositorySelector.GetRepository Overload List