Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

CompactRepositorySelector.CreateRepository�Method�(Assembly, Type)

Create a new repository for the assembly specified

[Visual�Basic]
NotOverridable�Overloads�Public�Function�CreateRepository( _
���ByVal assembly�As�Assembly,�_
���ByVal repositoryType�As�Type�_
)�As�ILoggerRepository�_
����Implements�IRepositorySelector.CreateRepository
[C#]
public�ILoggerRepository�CreateRepository(
���Assemblyassembly,
���TyperepositoryType
);

Parameters

assembly
not used
repositoryType
the type of repository to create, must implement ILoggerRepository

Return Value

the repository created

Implements

IRepositorySelector.CreateRepository

Remarks

The assembly argument is not used. This selector does not create a separate repository for each assembly.

If the repositoryType is null then the default repository type specified to the constructor is used.

As a named repository is not specified the default repository is returned. The default repository is named log4net-default-repository.

See Also

CompactRepositorySelector Class | log4net.Core Namespace | CompactRepositorySelector.CreateRepository Overload List