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: 12.17.2Syntax
public class AppContext
Properties
ApplicationId
Gets the application ID.
Declaration
[Obsolete("The concept of ApplicationID has been removed - ignore this property. Will remain at least until August 2018.")]
public Guid ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
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(Guid)
Declaration
[Obsolete("The concept of ApplicationID has been removed. Use method without applicationId parameter. Will remain at least until August 2018.")]
public AppDto GetApplicationDto(Guid appId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | appId |
Returns
Type | Description |
---|---|
AppDto |
GetApplicationDto(String)
Declaration
public AppDto GetApplicationDto(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
AppDto |
GetApplicationSystemVersion(out Int32, out Int32, out Int32, out DateTime)
Declaration
[Obsolete("This method is no longer used. Will remain at least until August 2018.")]
public static int GetApplicationSystemVersion(out int major, out int minor, out int patch, out DateTime installDate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | major | |
System.Int32 | minor | |
System.Int32 | patch | |
System.DateTime | installDate |
Returns
Type | Description |
---|---|
System.Int32 |
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 |