Click or drag to resize

IAtomicAction Interface

An abstraction whose instances can perform some action and back it out.

Namespace:  Couchbase.Lite.Util
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public interface IAtomicAction

The IAtomicAction type exposes the following members.

Methods
  NameDescription
Public methodBackOut
Backs out the completed action. This will be called if a subsequent action has failed.
Public methodCleanUp
Cleans up after all actions have completed. This may involve releasing/deleting any temporary resources being kept around to fulfil a backOut request.
Public methodPerform
Performs the action. Behavior should be all-or-nothing: if the action doesn't succeed, it should restore any temporary state to what it was before, before storing an error.
Top
See Also