C# Class TastyDomainDriven.File.FileAppendOnlyStoreAsync

Inheritance: IAppendOnlyAsync
Mostrar archivo Open project: jaceenet/TastyDomainDriven Class Usage Examples

Public Methods

Method Description
Append ( string streamName, byte data, long expectedStreamVersion = -1 ) : System.Threading.Tasks.Task
Dispose ( ) : void
ExtractMasterStream ( DirectoryInfo output, IAppenderNamingPolicy namingPolicy, long afterVersion, int maxCount, bool writeIndexFile = true ) : System.Threading.Tasks.Task

Extract the masterstream to mimic the folder structure the AzureAsyncAppender

FileAppendOnlyStoreAsync ( Options options ) : System
FileAppendOnlyStoreAsync ( string path ) : System
Read ( string filename ) : List
ReadRecords ( long afterVersion, int maxCount ) : Task
ReadRecords ( string streamName, long afterVersion, int maxCount ) : Task

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
GetDefaultOptions ( string path ) : Options

Method Details

Append() public method

public Append ( string streamName, byte data, long expectedStreamVersion = -1 ) : System.Threading.Tasks.Task
streamName string
data byte
expectedStreamVersion long
return System.Threading.Tasks.Task

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ExtractMasterStream() public method

Extract the masterstream to mimic the folder structure the AzureAsyncAppender
public ExtractMasterStream ( DirectoryInfo output, IAppenderNamingPolicy namingPolicy, long afterVersion, int maxCount, bool writeIndexFile = true ) : System.Threading.Tasks.Task
output System.IO.DirectoryInfo
namingPolicy IAppenderNamingPolicy
afterVersion long
maxCount int
writeIndexFile bool
return System.Threading.Tasks.Task

FileAppendOnlyStoreAsync() public method

public FileAppendOnlyStoreAsync ( Options options ) : System
options Options
return System

FileAppendOnlyStoreAsync() public method

public FileAppendOnlyStoreAsync ( string path ) : System
path string
return System

Read() public method

public Read ( string filename ) : List
filename string
return List

ReadRecords() public method

public ReadRecords ( long afterVersion, int maxCount ) : Task
afterVersion long
maxCount int
return Task

ReadRecords() public method

public ReadRecords ( string streamName, long afterVersion, int maxCount ) : Task
streamName string
afterVersion long
maxCount int
return Task