Table of Contents

Interface IReScopeProvider

Namespace
Rescope.Commerce.Core.Services
Assembly
Rescope.Commerce.Core.dll

Creates scopes to ensure your DB actions are completed in a single transaction, and rolled back if .Complete() is not invoked. If you do not create a IReScope before using Rescope Commerce's APIs, we will automatically create one internally.

public interface IReScopeProvider

Methods

CreateScope()

Create a new scope

IReScope CreateScope()

Returns

IReScope

Exceptions

ScopeAlreadyActiveException

A scope is already active and resuseExisting is false

GetOrCreateScope(out bool)

Creates a scope if one doesn't already exist. Otherwise returns the existing scope and sets didCreate to true.

IReScope GetOrCreateScope(out bool didCreate)

Parameters

didCreate bool

Returns

IReScope