Table of Contents

Class Application

Namespace
Dynamicweb.Ecommerce.Common
Assembly
Dynamicweb.Ecommerce.dll
The class Application represents application level cache service.
public class Application
Inheritance
Application
Inherited Members

Properties

AllCurrencies

Gets the currencies.
[Obsolete("Use Services.Currencies.GetAllCurrencies instead.")]
public static IEnumerable<Currency> AllCurrencies { get; }

Property Value

IEnumerable<Currency>
All currencies.

Countries

Gets the countries.
[Obsolete("Use Services.Countries.GetCountries instead.")]
public static CountryCollection Countries { get; }

Property Value

CountryCollection
The countries.

Currencies

Gets the currencies.
[Obsolete("Use Services.Currencies.GetAllCurrencies instead.")]
public static CurrencyCollection Currencies { get; }

Property Value

CurrencyCollection
The currencies for the current language.

DefaultCurrency

Gets the default currency.
[Obsolete("Use Services.Currencies.GetDefaultCurrency instead.")]
public static Currency DefaultCurrency { get; }

Property Value

Currency
The default currency. If currencies haven't been created - DKK will be returned

DefaultLanguage

Gets the default language.
[Obsolete("Use Services.Languages.GetDefaultLanguage instead.")]
public static Language DefaultLanguage { get; }

Property Value

Language
The default language.

DefaultShop

Gets the default shop.
[Obsolete("Use Services.Shops.GetDefaultShop instead.")]
public static Shop DefaultShop { get; }

Property Value

Shop
The default shop.

Languages

Gets the languages from current Application.
[Obsolete("Use Services.Languages.GetLanguages instead.")]
public static LanguageCollection Languages { get; }

Property Value

LanguageCollection
The languages from eCommerce.

OrderFields

Gets the order fields.
[Obsolete("Use Services.OrderFields.GetOrderFields instead.")]
public static OrderFieldCollection OrderFields { get; }

Property Value

OrderFieldCollection
The order fields.

OrderLineFields

Gets the order line fields.
[Obsolete("Use Services.OrderLineFields.GetOrderLineFields instead.")]
public static OrderLineFieldCollection OrderLineFields { get; }

Property Value

OrderLineFieldCollection
The order line fields.

OrderStates

Gets the order states.
[Obsolete("Use Services.OrderStates.GetStatesByOrderType instead")]
public static OrderStateCollection OrderStates { get; }

Property Value

OrderStateCollection
The order states.

Periods

Gets the periods.
[Obsolete("Use Services.Periods.GetPeriods instead.")]
public static IEnumerable<Period> Periods { get; }

Property Value

IEnumerable<Period>
The periods.

ProductFields

Gets the product fields.
public static IEnumerable<ProductField> ProductFields { get; }

Property Value

IEnumerable<ProductField>
The product fields.

ProductGroupFields

Gets the product group fields.
public static ProductGroupFieldCollection ProductGroupFields { get; }

Property Value

ProductGroupFieldCollection
The product group fields.

RelatedGroups

Gets the related groups.
[Obsolete("Use Services.ProductRelatedGroups.GetAllRelatedGroups instead")]
public static IEnumerable<ProductRelatedGroup> RelatedGroups { get; }

Property Value

IEnumerable<ProductRelatedGroup>
The related groups.

Shops

Gets the shops.
[Obsolete("Use Services.Shops.GetShops instead.")]
public static IEnumerable<Shop> Shops { get; }

Property Value

IEnumerable<Shop>
The shops.

StockGroups

Gets the stock groups.
[Obsolete("Use Services.StockService.GetStockGroups instead.")]
public static StockGroupCollection StockGroups { get; }

Property Value

StockGroupCollection
The stock groups.

UpdateContext

Gets a value indicating whether the application Context.UpdatedTime is set.
[Obsolete("Do not use")]
public static bool UpdateContext { get; }

Property Value

bool
true if the application Context.UpdatedTime; otherwise, false.

ValidationGroups

Gets the validation groups.
public static ValidationGroupCollection ValidationGroups { get; }

Property Value

ValidationGroupCollection
The validation groups.

VariantGroups

Gets the variant groups.
[Obsolete("Use Services.VariantGroups.GetFilteredVariantGroups to get the list of groups without 'family' and 'unit' groups. Use VariantGroup.Translations to get translated values.")]
public static VariantGroupCollection VariantGroups { get; }

Property Value

VariantGroupCollection
The variant groups.

VatGroups

Gets the vat groups.
[Obsolete("Use Services.VatGroups.GetVatGroups() instead")]
public static VatGroupCollection VatGroups { get; }

Property Value

VatGroupCollection
The vat groups.

Methods

get_Country(string)

Gets the country.
[Obsolete("Use Services.Countries.GetCountry instead")]
public static Country get_Country(string countryCode)

Parameters

countryCode string

Returns

Country
The country.

get_Currency(string)

Gets the currency.
[Obsolete("Use Services.Currencies.GetCurrency instead")]
public static Currency get_Currency(string currencyCode)

Parameters

currencyCode string

Returns

Currency
The currency for the current language otherwise the default currency.

get_Language(string)

Gets the language.
[Obsolete("Use Services.Languages.GetLanguage instead.")]
public static Language get_Language(string languageId)

Parameters

languageId string

Returns

Language
The language by LanguageId.

get_Period(string)

Gets the period.
[Obsolete("Use Services.Periods.GetPeriodById instead")]
public static Period get_Period(string periodId)

Parameters

periodId string

Returns

Period
The period.

get_Shop(string)

Gets the shop.
[Obsolete("Use Services.Shops.GetShop instead.")]
public static Shop get_Shop(string shopId)

Parameters

shopId string

Returns

Shop
The shop.

GetCurrency(string)

Gets the currency.
[Obsolete("Use Services.Currencies.GetCurrency instead.")]
public static Currency GetCurrency(string currencyCode)

Parameters

currencyCode string

Returns

Currency

GetLanguage(string)

Gets the language.
[Obsolete("Use Services.Languages.GetLanguage instead.")]
public static Language GetLanguage(string languageId)

Parameters

languageId string
The id of language.

Returns

Language

GetPeriod(string)

Gets the period.
[Obsolete("Use Services.Periods.GetPeriodById instead")]
public static Period GetPeriod(string periodId)

Parameters

periodId string

Returns

Period

GetShop(string)

Gets the shop.
[Obsolete("Use Services.Shops.GetShop instead.")]
public static Shop GetShop(string shopId)

Parameters

shopId string

Returns

Shop

KillAll()

Kills/clears all application variables.
public static void KillAll()

KillAssortments()

Kills the assortments application variables.
public static void KillAssortments()

KillCountries()

Kills the country application variable.
public static void KillCountries()

KillCurrencies()

Kills the currency application variable.
public static void KillCurrencies()

KillDiscounts()

Kills the discounts.
public static void KillDiscounts()

KillFieldTypes()

Kills the stock units
public static void KillFieldTypes()

KillGroups()

Kills the group cache.
public static void KillGroups()

KillLanguages()

Kills the languages application variable.
public static void KillLanguages()

KillManufacturers()

Kills the manufacturer application variable.
public static void KillManufacturers()

KillOrderFields()

Kills the order fields application variable.
public static void KillOrderFields()

KillOrderLineFields()

Kills the order line fields application variable and clears the cached orderlinefields.
public static void KillOrderLineFields()

KillOrderStates()

Kills the order states application variable.
public static void KillOrderStates()

KillPeriods()

Kills the period application variable.
public static void KillPeriods()

KillProductCategories()

Kills the product categories
public static void KillProductCategories()

KillProductFields()

Kills the product fields application variable.
public static void KillProductFields()

KillProductGroupFields()

Kills the product group fields application variable.
public static void KillProductGroupFields()

KillProductItems()

public static void KillProductItems()

KillProducts()

Kills the products.
public static void KillProducts()

KillRelatedGroups()

Kills the related groups application variable for each languages.
public static void KillRelatedGroups()

KillShops()

Kills the shop application variable and session.
public static void KillShops()

KillStockGroups()

Kills the stock groups application variable.
[Obsolete("This method is no longer used.")]
public static void KillStockGroups()

KillStockUnits()

Kills the stock units
public static void KillStockUnits()

KillValidationGroups()

Kills the validation groups application variable.
public static void KillValidationGroups()

KillVariantGroups()

Kills the variant groups application variable for each languages.
public static void KillVariantGroups()

KillVariantOptions()

Kills the variant options cache.
public static void KillVariantOptions()

KillVariants()

Kills the product variant cache (extended products)
public static void KillVariants()

KillVatGroups()

Kills the vat groups application variable.
public static void KillVatGroups()

SetContextUpdatedTime()

Sets the context updated time - Date.Now.
public static void SetContextUpdatedTime()
To top