IRepositorySelector CreateRepository Method (Assembly, Type)Apache log4net™ SDK Documentation
Creates a new repository for the assembly specified.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

ILoggerRepository CreateRepository(
	Assembly assembly,
	Type repositoryType
)

Parameters

assembly
Type: OnlineSystem.Reflection Assembly
The assembly to use to create the domain to associate with the ILoggerRepository.
repositoryType
Type: OnlineSystem Type
The type of repository to create, must implement ILoggerRepository.

Return Value

Type: ILoggerRepository
The repository created.
Remarks

The ILoggerRepository created will be associated with the domain specified such that a call to [M:GetRepository(Assembly)] with the same assembly specified will return the same repository instance.

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

See Also