CompactRepositorySelector Class | Apache log4net™ SDK Documentation

The implementation of the IRepositorySelector interface suitable for use with the compact framework
Inheritance Hierarchy

System
Object
log4net.Core
CompactRepositorySelector

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

C#
VB
C++
F#
Copy

    public class CompactRepositorySelector : IRepositorySelector

    Public Class CompactRepositorySelector
    	Implements IRepositorySelector

    public ref class CompactRepositorySelector : IRepositorySelector

    type CompactRepositorySelector =
        class
            interface IRepositorySelector
        end

The CompactRepositorySelector type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| CompactRepositorySelector | Create a new repository selector

Top
Methods

| Name | Description
--- | --- | ---
| CreateRepository(Assembly, Type) | Create a new repository for the assembly specified
| CreateRepository(String, Type) | Create a new repository for the repository specified
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| ExistsRepository | Test if a named repository exists
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| GetAllRepositories | Gets a list of ILoggerRepository objects
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetRepository(Assembly) | Get the ILoggerRepository for the specified assembly
| GetRepository(String) | Get the named ILoggerRepository
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| OnLoggerRepositoryCreatedEvent | Notify the registered listeners that the repository has been created
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Events

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

Top
Remarks

This IRepositorySelector implementation is a simple mapping between repository name and ILoggerRepository object.

The .NET Compact Framework 1.0 does not support retrieving assembly level attributes therefore unlike the DefaultRepositorySelector this selector does not examine the calling assembly for attributes.

See Also

#### Reference

log4net.Core Namespace