File tree Expand file tree Collapse file tree
src/FSharp.Data.Adaptive/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ module AdadptiveObjectExtensions =
9797 [<DefaultValue; ThreadStatic>]
9898 static val mutable private _Callbacks : list < unit -> unit >
9999
100+ static member Callbacks
101+ with get() = AfterEvaluateCallbacks._ Callbacks
102+ and set v = AfterEvaluateCallbacks._ Callbacks <- v
103+
100104 static member Add ( action : unit -> unit ) =
101105 if AdaptiveObject.UnsafeEvaluationDepth <= 0 then transact action
102106 elif isNull ( AfterEvaluateCallbacks._ Callbacks :> obj) then AfterEvaluateCallbacks._ Callbacks <- [ action]
Original file line number Diff line number Diff line change @@ -72,12 +72,12 @@ type Transaction() =
7272 /// Gets or sets the transaction currently running on this thread (if any)
7373 static member Running
7474 with get() = Transaction.RunningTransaction
75- and internal set r = Transaction.RunningTransaction <- r
75+ and set r = Transaction.RunningTransaction <- r
7676
7777 /// Gets or sets the transaction currently being built on this thread (via transact (fun () -> ...))
7878 static member Current
7979 with get() = Transaction.CurrentTransaction
80- and internal set r = Transaction.CurrentTransaction <- r
80+ and set r = Transaction.CurrentTransaction <- r
8181
8282 /// Indicates if inside a running Transaction
8383 static member HasRunning =
You can’t perform that action at this time.
0 commit comments