Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class SiteContext

Supports backwards compatibility for removed Mediachase.Commerce.Website.SiteContext.

Inheritance
System.Object
SiteContext
Namespace: Mediachase.Commerce.Core
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public class SiteContext : Object

Constructors

SiteContext()

Declaration
public SiteContext()

SiteContext(IHttpContextAccessor)

Declaration
public SiteContext(IHttpContextAccessor httpContextAccessor)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor

Fields

CURRENCYCOOKIE

Declaration
public const string CURRENCYCOOKIE = "currencyCode"
Field Value
Type Description
System.String

Properties

AppPath

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

Currency

Declaration
public virtual Currency Currency { get; set; }
Property Value
Type Description
Currency

Current

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

LanguageName

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

Methods

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String