Skip to content

Session Service

The session service is what creates and handles the creation, retrieval, updating and clearing of the UmbCheckout Basket within the .NET session.

You can access the session service by injecting ISessionService which can be found within the namespaceUmbCheckout.Core.Interfaces

Gets the current UmbCheckout session from the .NET session

Task<UmbCheckoutSession> Get();

Updates the current UmbCheckout session or create a new session if not found

Parameters:

Name Detail
basket The Basket
Task<UmbCheckoutSession> Update(Basket basket);

Clears the UmbCheckout session from the .NET session

Task<bool> Clear();