Interface defining async persistence operations for shopping carts in OrchardCore Commerce.
// Source: https://github.com/OrchardCMS/OrchardCore.Commerce | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
using OrchardCore.Commerce.Abstractions.Models;
using System.Threading.Tasks;
namespace OrchardCore.Commerce.Abstractions;
/// <summary>
/// Service that provides a way to retain shopping cart information.
/// </summary>
/// <remarks><para>
/// When deriving a custom implementation, please inherit from <c>ShoppingCartPersistenceBase</c> in the
/// <c>OrchardCore.Commerce</c> project to retain event handling and dependency injection scope level caching.
/// </para></remarks>
public interface IShoppingCartPersistence
{
/// <summary>
/// Returns a <see cref="ShoppingCart"/> identified by <paramref name="shoppingCartId"/>.
/
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key