C# Class Shielded.CommitSubscription

Contains information about a commit subscription, used in implementing Shield.Conditional and Shield.PreCommit.
Inheritance: IDisposable, IShielded
显示文件 Open project: jbakic/Shielded

Private Properties

Property Type Description
IShielded bool
IShielded void
IShielded void
Remover void
UpdateEntries void
WithoutMeOnce IEnumerable

Public Methods

Method Description
CommitSubscription ( CommitSubscriptionContext context, Func test, System.Action trans ) : System
Dispose ( ) : void
Run ( IEnumerable trigger ) : void

Private Methods

Method Description
IShielded ( WriteStamp writeStamp ) : bool
IShielded ( ) : void
IShielded ( long smallestOpenTransactionId ) : void
Remover ( IEnumerable toRemove ) : void
UpdateEntries ( ) : void

Updates our entries in the dictionary. To be immediately visible as soon as the _items.CanCommit() passes, we add ourselves into the dict straight away, and in a side effect we remove unnecessary entries, or, on rollback, undo the early additions.

WithoutMeOnce ( IEnumerable source ) : IEnumerable

Method Details

CommitSubscription() public method

public CommitSubscription ( CommitSubscriptionContext context, Func test, System.Action trans ) : System
context CommitSubscriptionContext
test Func
trans System.Action
return System

Dispose() public method

public Dispose ( ) : void
return void

Run() public method

public Run ( IEnumerable trigger ) : void
trigger IEnumerable
return void