IRepositorySelector GetRepository Method (Assembly) | Apache log4net™ SDK Documentation

Gets the ILoggerRepository for the specified assembly.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    ILoggerRepository GetRepository(
    	Assembly assembly
    )

    Function GetRepository (
    	assembly As Assembly
    ) As ILoggerRepository

    ILoggerRepository^ GetRepository(
    	Assembly^ assembly
    )

    abstract GetRepository :
            assembly : Assembly -> ILoggerRepository

#### Parameters

assembly
  Type: System.Reflection
  Assembly
  The assembly to use to lookup to the ILoggerRepository

#### Return Value

Type: ILoggerRepository
The ILoggerRepository for the assembly.
Remarks

Gets the ILoggerRepository for the specified assembly.

How the association between Assembly and 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.

See Also

#### Reference

IRepositorySelector Interface
GetRepository Overload
log4net.Core Namespace