Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Domain.Stores;
namespace Grand.Infrastructure;
public interface IStoreContext
{
/// <summary>
/// Gets or sets the current store
/// </summary>
Store CurrentStore { get; }
/// <summary>
/// Gets the current host
/// </summary>
DomainHost CurrentHost { get; }
}
public interface IStoreContextSetter
{
/// <summary>
/// Initialize the store context
/// </summary>
/// <returns></returns>
Task<IStoreContext> InitializeStoreContext(string storeId = null);
}