With Opticon around the corner, we'll be canceling this month's (Sept) Happy Hour.

Class AppContext

Implements methods for the application context.

Inheritance
System.Object
AppContext
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Core
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
public class AppContext

Properties

ApplicationName

Gets the application name.

Declaration
public string ApplicationName { get; set; }
Property Value
Type Description
System.String

AzureCompatible

Gets the flag to indicate whether this Commerce application is azure compatible or not.

Declaration
public bool AzureCompatible { get; }
Property Value
Type Description
System.Boolean

Current

Declaration
public static AppContext Current { get; }
Property Value
Type Description
AppContext

Methods

GetApplicationDto()

Declaration
public AppDto GetApplicationDto()
Returns
Type Description
AppDto

GetApplicationDto(String)

Declaration
public AppDto GetApplicationDto(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
AppDto

GetProductName()

Returns product name.

Declaration
public static string GetProductName()
Returns
Type Description
System.String

GetProductVersion()

Returns product version.

Declaration
public static string GetProductVersion()
Returns
Type Description
System.String

SaveApp(AppDto)

Declaration
public void SaveApp(AppDto dto)
Parameters
Type Name Description
AppDto dto