Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream Class Reference

File Stream with transactionnal write behaviour support. More...

Inheritance diagram for Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream:

Public Member Functions

 TransactionAwareFileStream (string path, FileMode fileMode)
 Custom constructor with path and FileMode. More...
 
override void Write (byte[] array, int offset, int count)
 overrides Write(byte[] array, int offset, int count) Writes to internal buffer if transaction is active, otherwise delegates to direct base write. More...
 
void Prepare (PreparingEnlistment preparingEnlistment)
 
void Commit (Enlistment enlistment)
 
void Rollback (Enlistment enlistment)
 
void InDoubt (Enlistment enlistment)
 
void SinglePhaseCommit (SinglePhaseEnlistment singlePhaseEnlistment)
 
override void Flush ()
 override Stream::Flush . More...
 

Protected Member Functions

override void Dispose (bool disposing)
 override Dispose . More...
 

Properties

override long Position [get, set]
 Gets or sets the current position of this stream. More...
 

Detailed Description

File Stream with transactionnal write behaviour support.

Constructor & Destructor Documentation

Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream.TransactionAwareFileStream ( string  path,
FileMode  fileMode 
)

Custom constructor with path and FileMode.

Parameters
path
fileMode

Member Function Documentation

void Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream.Commit ( Enlistment  enlistment)

See also
ISinglePhaseNotification::Commit .
Parameters
enlistment
override void Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream.Dispose ( bool  disposing)
protected

override Dispose .

Parameters
disposing
override void Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream.Flush ( )

override Stream::Flush .

void Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream.InDoubt ( Enlistment  enlistment)

See also
ISinglePhaseNotification::InDoubt .
Parameters
enlistment
void Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream.Prepare ( PreparingEnlistment  preparingEnlistment)

See also
ISinglePhaseNotification::Prepare .
Parameters
preparingEnlistment
void Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream.Rollback ( Enlistment  enlistment)

See also
ISinglePhaseNotification::Rollback .
Parameters
enlistment
void Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream.SinglePhaseCommit ( SinglePhaseEnlistment  singlePhaseEnlistment)

See also
ISinglePhaseNotification::SinglePhaseCommit .
Parameters
singlePhaseEnlistment
override void Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream.Write ( byte[]  array,
int  offset,
int  count 
)

overrides Write(byte[] array, int offset, int count) Writes to internal buffer if transaction is active, otherwise delegates to direct base write.

Parameters
array
offset
count

Property Documentation

override long Summer.Batch.Infrastructure.Support.Transaction.TransactionAwareFileStream.Position
getset

Gets or sets the current position of this stream.

Returns
The current position of this stream.

The documentation for this class was generated from the following file:
  • Summer.Batch.Infrastructure/Support/Transaction/TransactionAwareFileStream.cs