Table of Contents

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

CacheInformation

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

key AddressFormatKey

Key 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

keys IEnumerable<AddressFormatKey>

Keys to reset

GetDefaultDisplayAddressFormat(string)

Gets default display address format for needed country.

public virtual string? GetDefaultDisplayAddressFormat(string countryCode)

Parameters

countryCode string

Country code

Returns

string

GetDefaultEditAddressFormat(string)

Gets default edit address format for needed country.

public virtual string? GetDefaultEditAddressFormat(string countryCode)

Parameters

countryCode string

Country code

Returns

string

SetCacheType<TObjectCache>()

Changes the storage container

public virtual void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<AddressFormatKey, string>

Type Parameters

TObjectCache
To top