Class AbpStringLocalizerFactory
Inheritance
object
AbpStringLocalizerFactory
Implements
Microsoft.Extensions.Localization.IStringLocalizerFactory
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.Localization.dll
Syntax
public class AbpStringLocalizerFactory : IStringLocalizerFactory, IAbpStringLocalizerFactory
Constructors
AbpStringLocalizerFactory(ResourceManagerStringLocalizerFactory, IOptions<AbpLocalizationOptions>, IServiceProvider, IExternalLocalizationStore)
Declaration
public AbpStringLocalizerFactory(ResourceManagerStringLocalizerFactory innerFactory, IOptions<AbpLocalizationOptions> abpLocalizationOptions, IServiceProvider serviceProvider, IExternalLocalizationStore externalLocalizationStore)
Parameters
Type |
Name |
Description |
Microsoft.Extensions.Localization.ResourceManagerStringLocalizerFactory |
innerFactory |
|
Microsoft.Extensions.Options.IOptions<TOptions><AbpLocalizationOptions> |
abpLocalizationOptions |
|
System.IServiceProvider |
serviceProvider |
|
IExternalLocalizationStore |
externalLocalizationStore |
|
Properties
AbpLocalizationOptions
Declaration
protected AbpLocalizationOptions AbpLocalizationOptions { get; }
Property Value
ExternalLocalizationStore
Declaration
protected IExternalLocalizationStore ExternalLocalizationStore { get; }
Property Value
InnerFactory
Declaration
protected ResourceManagerStringLocalizerFactory InnerFactory { get; }
Property Value
Type |
Description |
Microsoft.Extensions.Localization.ResourceManagerStringLocalizerFactory |
|
LocalizerCache
Declaration
protected ConcurrentDictionary<string, AbpStringLocalizerFactory.StringLocalizerCacheItem> LocalizerCache { get; }
Property Value
LocalizerCacheSemaphore
Declaration
protected SemaphoreSlim LocalizerCacheSemaphore { get; }
Property Value
Type |
Description |
System.Threading.SemaphoreSlim |
|
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider { get; }
Property Value
Type |
Description |
System.IServiceProvider |
|
Methods
Create(string, string)
Declaration
public virtual IStringLocalizer Create(string baseName, string location)
Parameters
Type |
Name |
Description |
string |
baseName |
|
string |
location |
|
Returns
Type |
Description |
Microsoft.Extensions.Localization.IStringLocalizer |
|
Create(Type)
Declaration
public virtual IStringLocalizer Create(Type resourceType)
Parameters
Type |
Name |
Description |
System.Type |
resourceType |
|
Returns
Type |
Description |
Microsoft.Extensions.Localization.IStringLocalizer |
|
CreateByResourceNameOrNull(string)
Declaration
public IStringLocalizer? CreateByResourceNameOrNull(string resourceName)
Parameters
Type |
Name |
Description |
string |
resourceName |
|
Returns
Type |
Description |
Microsoft.Extensions.Localization.IStringLocalizer |
|
CreateByResourceNameOrNullAsync(string)
Declaration
public Task<IStringLocalizer?> CreateByResourceNameOrNullAsync(string resourceName)
Parameters
Type |
Name |
Description |
string |
resourceName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TResult><Microsoft.Extensions.Localization.IStringLocalizer> |
|
CreateDefaultOrNull()
Declaration
public IStringLocalizer? CreateDefaultOrNull()
Returns
Type |
Description |
Microsoft.Extensions.Localization.IStringLocalizer |
|
Implements
Microsoft.Extensions.Localization.IStringLocalizerFactory
Extension Methods