C# Class Kooboo.Commerce.Multilingual.Storage.CachedTranslactionStore

Inheritance: ITranslationStore
Show file Open project: Kooboo/Ecommerce Class Usage Examples

Public Methods

Method Description
AddOrUpdate ( System culture, EntityKey key, IEnumerable propertyTranslations ) : void
CachedTranslactionStore ( ITranslationStore underlyingStore ) : System
CachedTranslactionStore ( ITranslationStore underlyingStore, IEnumerable typesToCache ) : System
Delete ( System culture, EntityKey key ) : void
Find ( System culture, EntityKey key ) : EntityTransaltion
Find ( System culture ) : EntityTransaltion[]
FindOutOfDate ( System culture, Type entityType, int pageIndex, int pageSize ) : Pagination
MarkOutOfDate ( System culture, EntityKey key ) : void
TotalOutOfDate ( System culture, Type entityType ) : int
TotalTranslated ( System culture, Type entityType ) : int

Private Methods

Method Description
FindInUnderlyingStore ( CultureInfo culture, EntityKey keys ) : EntityTransaltion[]
IsEmptyTranslation ( EntityTransaltion translation ) : bool
NeedToBeCached ( Type entityType ) : bool
RemoveCache ( CultureInfo culture, EntityKey entityKey ) : void
UpdateCache ( CultureInfo culture, IEnumerable translations ) : void

Method Details

AddOrUpdate() public method

public AddOrUpdate ( System culture, EntityKey key, IEnumerable propertyTranslations ) : void
culture System
key EntityKey
propertyTranslations IEnumerable
return void

CachedTranslactionStore() public method

public CachedTranslactionStore ( ITranslationStore underlyingStore ) : System
underlyingStore ITranslationStore
return System

CachedTranslactionStore() public method

public CachedTranslactionStore ( ITranslationStore underlyingStore, IEnumerable typesToCache ) : System
underlyingStore ITranslationStore
typesToCache IEnumerable
return System

Delete() public method

public Delete ( System culture, EntityKey key ) : void
culture System
key EntityKey
return void

Find() public method

public Find ( System culture, EntityKey key ) : EntityTransaltion
culture System
key EntityKey
return EntityTransaltion

Find() public method

public Find ( System culture ) : EntityTransaltion[]
culture System
return EntityTransaltion[]

FindOutOfDate() public method

public FindOutOfDate ( System culture, Type entityType, int pageIndex, int pageSize ) : Pagination
culture System
entityType System.Type
pageIndex int
pageSize int
return Pagination

MarkOutOfDate() public method

public MarkOutOfDate ( System culture, EntityKey key ) : void
culture System
key EntityKey
return void

TotalOutOfDate() public method

public TotalOutOfDate ( System culture, Type entityType ) : int
culture System
entityType System.Type
return int

TotalTranslated() public method

public TotalTranslated ( System culture, Type entityType ) : int
culture System
entityType System.Type
return int