зеркало из https://github.com/aspnet/Localization.git
Merge branch 'dev' of github.com:aspnet/Localization into dev
This commit is contained in:
Коммит
6f3a68d80d
|
@ -36,19 +36,28 @@ namespace Microsoft.Extensions.Localization
|
|||
Assembly resourceAssembly,
|
||||
string baseName,
|
||||
IResourceNamesCache resourceNamesCache)
|
||||
: this(
|
||||
resourceManager,
|
||||
new AssemblyWrapper(resourceAssembly),
|
||||
baseName,
|
||||
resourceNamesCache)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Intended for testing purposes only.
|
||||
/// </summary>
|
||||
public ResourceManagerStringLocalizer(
|
||||
ResourceManager resourceManager,
|
||||
AssemblyWrapper resourceAssemblyWrapper,
|
||||
string baseName,
|
||||
IResourceNamesCache resourceNamesCache)
|
||||
: this(
|
||||
resourceManager,
|
||||
new AssemblyResourceStringProvider(
|
||||
resourceNamesCache,
|
||||
new AssemblyWrapper(resourceAssembly),
|
||||
baseName),
|
||||
new AssemblyResourceStringProvider(resourceNamesCache, resourceAssemblyWrapper, baseName),
|
||||
baseName,
|
||||
resourceNamesCache)
|
||||
{
|
||||
if (resourceAssembly == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(resourceAssembly));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Загрузка…
Ссылка в новой задаче