Header menu logo FSharp.Data.Adaptive

Transaction Type

Holds a set of adaptive objects which have been changed and shall therefore be marked as outOfDate. Committing the transaction propagates these changes into the dependency-graph, takes care of the correct execution-order and acquires appropriate locks for all objects affected.

Record fields

Record Field Description

CurrentTransaction

Full Usage: CurrentTransaction

Field type: ValueOption<Transaction>
Modifiers: mutable static
Field type: ValueOption<Transaction>

RunningTransaction

Full Usage: RunningTransaction

Field type: ValueOption<Transaction>
Modifiers: mutable static
Field type: ValueOption<Transaction>

Constructors

Constructor Description

Transaction()

Full Usage: Transaction()

Returns: Transaction
Returns: Transaction

Instance members

Instance member Description

this.AddFinalizer

Full Usage: this.AddFinalizer

Parameters:
    f : unit -> unit

f : unit -> unit

this.Commit

Full Usage: this.Commit

Performs the entire marking process, causing all affected objects to be made consistent with the enqueued changes.

this.CurrentAdapiveObject

Full Usage: this.CurrentAdapiveObject

Returns: IAdaptiveObject option

Gets the current AdaptiveObject being marked

Returns: IAdaptiveObject option

this.CurrentLevel

Full Usage: this.CurrentLevel

Returns: int

Gets the current Level the Transaction operates on

Returns: int

this.Dispose

Full Usage: this.Dispose

Disposes the transaction running all of its "Finalizers"

this.Enqueue

Full Usage: this.Enqueue

Parameters:

Enqueues an adaptive object for marking

e : IAdaptiveObject

this.IsContained

Full Usage: this.IsContained

Parameters:
Returns: bool
e : IAdaptiveObject
Returns: bool

Static members

Static member Description

Transaction.Current

Full Usage: Transaction.Current

Gets or sets the transaction currently being built on this thread (via transact (fun () -> ...))

Transaction.HasRunning

Full Usage: Transaction.HasRunning

Returns: bool

Indicates if inside a running Transaction

Returns: bool

Transaction.Running

Full Usage: Transaction.Running

Gets or sets the transaction currently running on this thread (if any)

Transaction.RunningLevel

Full Usage: Transaction.RunningLevel

Returns: int

Gets the level of the currently running Transaction or Int32.MaxValue when no Transaction is running

Returns: int

Type something to start searching.