Class AddressFormatService
- Namespace
- Dynamicweb.Ecommerce.International
- Assembly
- Dynamicweb.Ecommerce.dll
Country address formats service
public class AddressFormatService : ICacheStorage<AddressFormatKey, string>, ICacheStorage<AddressFormatKey>, ICacheStorage
- Inheritance
-
AddressFormatService
- Implements
- Inherited Members
Properties
Info
Information about the object cache
public virtual CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public virtual void ClearCache()
ClearCache(AddressFormatKey)
Resets the specified key to the default value for objects stored in the object cache
public virtual void ClearCache(AddressFormatKey key)
Parameters
keyAddressFormatKeyKey to reset
ClearCache(IEnumerable<AddressFormatKey>)
Resets the specified keys to the default value for objects stored in the object cache
public virtual void ClearCache(IEnumerable<AddressFormatKey> keys)
Parameters
keysIEnumerable<AddressFormatKey>Keys to reset
GetDefaultDisplayAddressFormat(string)
Gets default display address format for needed country.
public virtual string? GetDefaultDisplayAddressFormat(string countryCode)
Parameters
countryCodestringCountry code
Returns
GetDefaultEditAddressFormat(string)
Gets default edit address format for needed country.
public virtual string? GetDefaultEditAddressFormat(string countryCode)
Parameters
countryCodestringCountry code
Returns
SetCacheType<TObjectCache>()
Changes the storage container
public virtual void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<AddressFormatKey, string>
Type Parameters
TObjectCache