log4net SDK Reference |

# 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(
Assembly assembly,
Type repositoryType
);

#### 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