Try our conversational search powered by Generative AI!

Interface ICommerceContext

Namespace: Mediachase.Commerce
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
[Obsolete("This class is no longer used. Will remain at least until August 2020.")]
public interface ICommerceContext

Methods

GetCatalogConnectionString()

Gets the connection string for the catalog database.

Declaration
string GetCatalogConnectionString()
Returns
Type Description
System.String

The catalog database connection string.

GetCustomerGroup()

Gets the current user's customer group.

Declaration
string GetCustomerGroup()
Returns
Type Description
System.String

The current user's customer group, or null if the curreny user is not authenticated or has no customer group.

GetDefaultCurrency()

Returns the default currency within the current context.

Declaration
Currency GetDefaultCurrency()
Returns
Type Description
Currency

The default currency.

GetUserName()

Gets the current user's username.

Declaration
string GetUserName()
Returns
Type Description
System.String

The current user's username, or null if the current user is not autenticated.