C# Class Raven.Client.Document.RavenClientEnlistment

An implementation of IEnlistmentNotification for the Raven Client API, allowing Raven Client API to participate in Distributed Transactions
Inheritance: IEnlistmentNotification
Mostra file Open project: robashton/ravendb Class Usage Examples

Private Properties

Property Type Description
DeleteFile void

Public Methods

Method Description
Commit ( Enlistment enlistment ) : void

Notifies an enlisted object that a transaction is being committed.

InDoubt ( Enlistment enlistment ) : void

Notifies an enlisted object that the status of a transaction is in doubt.

Initialize ( ) : void

Initializes this instance.

Prepare ( PreparingEnlistment preparingEnlistment ) : void

Notifies an enlisted object that a transaction is being prepared for commitment.

RavenClientEnlistment ( DocumentStoreBase documentStore, ITransactionalDocumentSession session, System.Action onTxComplete ) : System

Initializes a new instance of the RavenClientEnlistment class.

Rollback ( Enlistment enlistment ) : void

Notifies an enlisted object that a transaction is being rolled back (aborted).

Rollback ( SinglePhaseEnlistment singlePhaseEnlistment ) : void

Rollbacks the specified single phase enlistment.

Private Methods

Method Description
DeleteFile ( ) : void

Method Details

Commit() public method

Notifies an enlisted object that a transaction is being committed.
public Commit ( Enlistment enlistment ) : void
enlistment System.Transactions.Enlistment An object used to send a response to the transaction manager.
return void

InDoubt() public method

Notifies an enlisted object that the status of a transaction is in doubt.
public InDoubt ( Enlistment enlistment ) : void
enlistment System.Transactions.Enlistment An object used to send a response to the transaction manager.
return void

Initialize() public method

Initializes this instance.
public Initialize ( ) : void
return void

Prepare() public method

Notifies an enlisted object that a transaction is being prepared for commitment.
public Prepare ( PreparingEnlistment preparingEnlistment ) : void
preparingEnlistment System.Transactions.PreparingEnlistment A object used to send a response to the transaction manager.
return void

RavenClientEnlistment() public method

Initializes a new instance of the RavenClientEnlistment class.
public RavenClientEnlistment ( DocumentStoreBase documentStore, ITransactionalDocumentSession session, System.Action onTxComplete ) : System
documentStore DocumentStoreBase
session ITransactionalDocumentSession
onTxComplete System.Action
return System

Rollback() public method

Notifies an enlisted object that a transaction is being rolled back (aborted).
public Rollback ( Enlistment enlistment ) : void
enlistment System.Transactions.Enlistment A object used to send a response to the transaction manager.
return void

Rollback() public method

Rollbacks the specified single phase enlistment.
public Rollback ( SinglePhaseEnlistment singlePhaseEnlistment ) : void
singlePhaseEnlistment System.Transactions.SinglePhaseEnlistment The single phase enlistment.
return void