Class DefaultSiteContext
Implementation of SiteContext that depends on current market for currency settings.
Namespace: Mediachase.Commerce.Core
Assembly: Mediachase.Commerce.dll
Version: 14.26.0Syntax
public class DefaultSiteContext : SiteContext
Remarks
This is the default SiteContext implementation that will be used unless the container is re-configured.
Constructors
DefaultSiteContext(ICurrentMarket, IWebHostEnvironment)
Declaration
public DefaultSiteContext(ICurrentMarket currentMarket, IWebHostEnvironment hostEnvironment)
Parameters
Type | Name | Description |
---|---|---|
ICurrentMarket | currentMarket | |
Microsoft.AspNetCore.Hosting.IWebHostEnvironment | hostEnvironment |
DefaultSiteContext(ICurrentMarket, IWebHostEnvironment, IHttpContextAccessor)
Declaration
public DefaultSiteContext(ICurrentMarket currentMarket, IWebHostEnvironment hostEnvironment, IHttpContextAccessor httpContextAccessor)
Parameters
Type | Name | Description |
---|---|---|
ICurrentMarket | currentMarket | |
Microsoft.AspNetCore.Hosting.IWebHostEnvironment | hostEnvironment | |
Microsoft.AspNetCore.Http.IHttpContextAccessor | httpContextAccessor |
Properties
AppPath
Gets or sets the application path.
Declaration
public override string AppPath { get; set; }
Property Value
Type | Description |
---|---|
System.String | The application path. |
Overrides
Currency
Gets or sets the currency.
Declaration
public override Currency Currency { get; set; }
Property Value
Type | Description |
---|---|
Currency | The currency. |
Overrides
LanguageName
Gets or sets the language name.
Declaration
public override string LanguageName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The language name. |