Interface ICommerceContext
Namespace: Mediachase.Commerce
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public interface ICommerceContext
Methods
GetApplicationId()
Gets the application id within the current context.
Declaration
[Obsolete("The concept of ApplicationID has been removed - ignore this value. Will remain at least until August 2018.")]
Guid GetApplicationId()
Returns
Type | Description |
---|---|
System.Guid | The application id. |
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. |