Show / Hide Table of Contents

Class DynamicResourceLocalizer

Inheritance
object
DynamicResourceLocalizer
Implements
IDynamicResourceLocalizer
ISingletonDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.LanguageManagement
Assembly: Volo.Abp.LanguageManagement.Domain.dll
Syntax
public class DynamicResourceLocalizer : IDynamicResourceLocalizer, ISingletonDependency

Constructors

DynamicResourceLocalizer(IServiceScopeFactory, IDistributedCache<LanguageTextCacheItem>)

Declaration
public DynamicResourceLocalizer(IServiceScopeFactory serviceScopeFactory, IDistributedCache<LanguageTextCacheItem> cache)
Parameters
Type Name Description
IServiceScopeFactory serviceScopeFactory
IDistributedCache<LanguageTextCacheItem> cache

Properties

Cache

Declaration
protected IDistributedCache<LanguageTextCacheItem> Cache { get; }
Property Value
Type Description
IDistributedCache<LanguageTextCacheItem>

ServiceScopeFactory

Declaration
protected IServiceScopeFactory ServiceScopeFactory { get; }
Property Value
Type Description
IServiceScopeFactory

Methods

CreateCacheItem(LocalizationResourceBase, string)

Declaration
protected virtual LanguageTextCacheItem CreateCacheItem(LocalizationResourceBase resource, string cultureName)
Parameters
Type Name Description
LocalizationResourceBase resource
string cultureName
Returns
Type Description
LanguageTextCacheItem

CreateCacheItemAsync(LocalizationResourceBase, string)

Declaration
protected virtual Task<LanguageTextCacheItem> CreateCacheItemAsync(LocalizationResourceBase resource, string cultureName)
Parameters
Type Name Description
LocalizationResourceBase resource
string cultureName
Returns
Type Description
Task<LanguageTextCacheItem>

Fill(LocalizationResourceBase, string, Dictionary<string, LocalizedString>)

Declaration
public virtual void Fill(LocalizationResourceBase resource, string cultureName, Dictionary<string, LocalizedString> dictionary)
Parameters
Type Name Description
LocalizationResourceBase resource
string cultureName
Dictionary<string, LocalizedString> dictionary

FillAsync(LocalizationResourceBase, string, Dictionary<string, LocalizedString>)

Declaration
public Task FillAsync(LocalizationResourceBase resource, string cultureName, Dictionary<string, LocalizedString> dictionary)
Parameters
Type Name Description
LocalizationResourceBase resource
string cultureName
Dictionary<string, LocalizedString> dictionary
Returns
Type Description
Task

GetCacheItem(LocalizationResourceBase, string)

Declaration
protected virtual LanguageTextCacheItem GetCacheItem(LocalizationResourceBase resource, string cultureName)
Parameters
Type Name Description
LocalizationResourceBase resource
string cultureName
Returns
Type Description
LanguageTextCacheItem

GetCacheItemAsync(LocalizationResourceBase, string)

Declaration
protected virtual Task<LanguageTextCacheItem> GetCacheItemAsync(LocalizationResourceBase resource, string cultureName)
Parameters
Type Name Description
LocalizationResourceBase resource
string cultureName
Returns
Type Description
Task<LanguageTextCacheItem>

GetOrNull(LocalizationResourceBase, string, string)

Declaration
public virtual LocalizedString GetOrNull(LocalizationResourceBase resource, string cultureName, string name)
Parameters
Type Name Description
LocalizationResourceBase resource
string cultureName
string name
Returns
Type Description
LocalizedString

Implements

IDynamicResourceLocalizer
ISingletonDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform