C# Класс BudgetAnalyser.Engine.Statement.CsvOnDiskStatementModelRepositoryV1

Наследование: IVersionedStatementModelRepository
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateNewAndSaveAsync ( string storageKey ) : System.Threading.Tasks.Task
CsvOnDiskStatementModelRepositoryV1 ( [ importUtilities, [ logger, StatementModel>.[ mapper, [ readerWriterSelector ) : System
LoadAsync ( string storageKey, bool isEncrypted ) : Task

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

CreateNewAndSaveAsync() публичный Метод

public CreateNewAndSaveAsync ( string storageKey ) : System.Threading.Tasks.Task
storageKey string
Результат System.Threading.Tasks.Task

CsvOnDiskStatementModelRepositoryV1() публичный Метод

public CsvOnDiskStatementModelRepositoryV1 ( [ importUtilities, [ logger, StatementModel>.[ mapper, [ readerWriterSelector ) : System
importUtilities [
logger [
mapper StatementModel>.[
readerWriterSelector [
Результат System

LoadAsync() публичный Метод

public LoadAsync ( string storageKey, bool isEncrypted ) : Task
storageKey string
isEncrypted bool
Результат Task

ReadLinesAsync() защищенный Метод

Reads the lines from the file asynchronously.
protected ReadLinesAsync ( string fileName, bool isEncrypted ) : Task>
fileName string
isEncrypted bool
Результат Task>

ReadLinesAsync() защищенный Метод

Reads the lines from the file asynchronously.
protected ReadLinesAsync ( string fileName, int lines, bool isEncrypted ) : Task>
fileName string
lines int
isEncrypted bool
Результат Task>