C# Class BudgetAnalyser.Engine.Statement.CsvOnDiskStatementModelRepositoryV1

Inheritance: IVersionedStatementModelRepository
Afficher le fichier Open project: Benrnz/BudgetAnalyser Class Usage Examples

Méthodes publiques

Méthode Description
CreateNewAndSaveAsync ( string storageKey ) : System.Threading.Tasks.Task
CsvOnDiskStatementModelRepositoryV1 ( [ importUtilities, [ logger, StatementModel>.[ mapper, [ readerWriterSelector ) : System
LoadAsync ( string storageKey, bool isEncrypted ) : Task

Méthodes protégées

Méthode Description
ReadLinesAsync ( string fileName, bool isEncrypted ) : Task>

Reads the lines from the file asynchronously.

ReadLinesAsync ( string fileName, int lines, bool isEncrypted ) : Task>

Reads the lines from the file asynchronously.

Private Methods

Méthode Description
CalculateTransactionCheckSum ( TransactionSetDto setDto ) : long
CreateTransactionSet ( string fileName, List allLines, List transactions ) : TransactionSetDto
IsStatementModelAsync ( string storageKey, bool isEncrypted ) : Task
ReadTransactions ( long totalLines, List allLines ) : List
SaveAsync ( StatementModel model, string storageKey, bool isEncrypted ) : System.Threading.Tasks.Task
ValidateChecksumIntegrity ( TransactionSetDto transactionSet ) : void
VersionCheck ( List allLines ) : bool
WriteHeader ( StreamWriter writer, TransactionSetDto setDto ) : void

Method Details

CreateNewAndSaveAsync() public méthode

public CreateNewAndSaveAsync ( string storageKey ) : System.Threading.Tasks.Task
storageKey string
Résultat System.Threading.Tasks.Task

CsvOnDiskStatementModelRepositoryV1() public méthode

public CsvOnDiskStatementModelRepositoryV1 ( [ importUtilities, [ logger, StatementModel>.[ mapper, [ readerWriterSelector ) : System
importUtilities [
logger [
mapper StatementModel>.[
readerWriterSelector [
Résultat System

LoadAsync() public méthode

public LoadAsync ( string storageKey, bool isEncrypted ) : Task
storageKey string
isEncrypted bool
Résultat Task

ReadLinesAsync() protected méthode

Reads the lines from the file asynchronously.
protected ReadLinesAsync ( string fileName, bool isEncrypted ) : Task>
fileName string
isEncrypted bool
Résultat Task>

ReadLinesAsync() protected méthode

Reads the lines from the file asynchronously.
protected ReadLinesAsync ( string fileName, int lines, bool isEncrypted ) : Task>
fileName string
lines int
isEncrypted bool
Résultat Task>