Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

IRepositorySelector.CreateRepository�Method�(Assembly, Type)

Creates a new repository for the assembly specified.

[Visual�Basic]
Function�CreateRepository( _
���ByVal assembly�As�Assembly,�_
���ByVal repositoryType�As�Type�_
)�As�ILoggerRepository
[C#]
ILoggerRepository�CreateRepository(
���Assemblyassembly,
���TyperepositoryType
);

Parameters

assembly
The assembly to use to create the domain to associate with the ILoggerRepository.
repositoryType
The type of repository to create, must implement ILoggerRepository.

Return Value

The repository created.

Remarks

The ILoggerRepository created will be associated with the domain specified such that a call to GetRepository with the same assembly specified will return the same repository instance.

How the association between Assembly and ILoggerRepository is made is not defined. The implementation may choose any method for this association.

See Also

IRepositorySelector Interface | log4net.Core Namespace | IRepositorySelector.CreateRepository Overload List