PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Log4Net Namespace / Log4Net­Collecting­Repository­Selector Class / Log4Net­Collecting­Repository­Selector Methods / Log4Net­Collecting­Repository­Selector.​Get­Repository Method / Log4Net­Collecting­Repository­Selector.​Get­Repository Method (String)

Log4NetCollectingRepositorySelector.GetRepository Method (String)

If repositoryName corresponds to the "relay repository", returns that. Otherwise, returns a repository of the type Log4NetCollectionRepository.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Log4Net
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Log4Net (in PostSharp.Patterns.Diagnostics.Backends.Log4Net.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public ILoggerRepository GetRepository(
	string repositoryName
)

Parameters

repositoryName
Type: System.String
The name to use to lookup to the ILoggerRepository.

Return Value

Type: ILoggerRepository
The named ILoggerRepository.

Implements

IRepositorySelector.GetRepository(String)
See Also