LoggerManagerCreateDomain Method (Assembly, Type)Apache log4net™ SDK Documentation

Note: This API is now obsolete.

Creates a repository for the specified assembly and repository type.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 4.0

[ObsoleteAttribute("Use CreateRepository instead of CreateDomain")]
public static ILoggerRepository CreateDomain(
	Assembly repositoryAssembly,
	Type repositoryType


Type: System.ReflectionAssembly
The assembly to use to get the name of the repository.
Type: SystemType
A Type that implements ILoggerRepository and has a no arg constructor. An instance of this type will be created to act as the ILoggerRepository for the repository specified.

Return Value

Type: ILoggerRepository
The ILoggerRepository created for the repository.

CreateDomain is obsolete. Use CreateRepository instead of CreateDomain.

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

See Also