Session Service

A service to handle the Get, Update and Clearing of the Session

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

Create

Gets the current UmbCheckout session from the .NET session

Task<UmbCheckoutSession> Get();

Update

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

Parameters:

NameDetail

basket

The Basket

Task<UmbCheckoutSession> Update(Basket basket);

Clear

Clears the UmbCheckout session from the .NET session

Task Clear();

Last updated