IRepositorySelector Interface | Apache log4net™ SDK Documentation

Interface used by the LogManager to select the ILoggerRepository.

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

C#
VB
C++
F#
Copy

    public interface IRepositorySelector

    Public Interface IRepositorySelector

    public interface class IRepositorySelector

    type IRepositorySelector =  interface end

The IRepositorySelector type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| CreateRepository(Assembly, Type) | Creates a new repository for the assembly specified.
| CreateRepository(String, Type) | Creates a new repository with the name specified.
| ExistsRepository | Test if a named repository exists
| GetAllRepositories | Gets an array of all currently defined repositories.
| GetRepository(Assembly) | Gets the ILoggerRepository for the specified assembly.
| GetRepository(String) | Gets the named ILoggerRepository.

Top
Events

| Name | Description
--- | --- | ---
| LoggerRepositoryCreatedEvent | Event to notify that a logger repository has been created.

Top
Remarks

The LogManager uses a IRepositorySelector to specify the policy for selecting the correct ILoggerRepository to return to the caller.

See Also

#### Reference

log4net.Core Namespace