C# Class BudgetAnalyser.Engine.Ledger.XamlOnDiskLedgerBookRepository

Inheritance: ILedgerBookRepository
Datei anzeigen Open project: Benrnz/BudgetAnalyser

Public Methods

Method Description
CreateNewAndSaveAsync ( string storageKey ) : Task
LoadAsync ( string storageKey, bool isEncrypted ) : Task
SaveAsync ( LedgerBook book, string storageKey, bool isEncrypted ) : System.Threading.Tasks.Task
XamlOnDiskLedgerBookRepository ( LedgerBook>.[ mapper, [ importUtilities, [ ledgerBookFactory, [ readerWriterSelector ) : System

Protected Methods

Method Description
Deserialise ( string xaml ) : object
LoadXamlAsString ( string fileName ) : string

Loads the xaml as string.

LoadXamlFromDiskAsync ( string fileName, bool isEncrypted ) : Task
SaveDtoToDiskAsync ( [ dataEntity, bool isEncrypted ) : System.Threading.Tasks.Task
Serialise ( LedgerBookDto dataEntity ) : string

Serialises the specified data entity.

Private Methods

Method Description
CalculateChecksum ( LedgerBook dataEntity ) : double

Method Details

CreateNewAndSaveAsync() public method

public CreateNewAndSaveAsync ( string storageKey ) : Task
storageKey string
return Task

Deserialise() protected method

protected Deserialise ( string xaml ) : object
xaml string
return object

LoadAsync() public method

public LoadAsync ( string storageKey, bool isEncrypted ) : Task
storageKey string
isEncrypted bool
return Task

LoadXamlAsString() protected method

Loads the xaml as string.
protected LoadXamlAsString ( string fileName ) : string
fileName string Name of the file.
return string

LoadXamlFromDiskAsync() protected method

protected LoadXamlFromDiskAsync ( string fileName, bool isEncrypted ) : Task
fileName string
isEncrypted bool
return Task

SaveAsync() public method

public SaveAsync ( LedgerBook book, string storageKey, bool isEncrypted ) : System.Threading.Tasks.Task
book LedgerBook
storageKey string
isEncrypted bool
return System.Threading.Tasks.Task

SaveDtoToDiskAsync() protected method

protected SaveDtoToDiskAsync ( [ dataEntity, bool isEncrypted ) : System.Threading.Tasks.Task
dataEntity [
isEncrypted bool
return System.Threading.Tasks.Task

Serialise() protected method

Serialises the specified data entity.
protected Serialise ( LedgerBookDto dataEntity ) : string
dataEntity BudgetAnalyser.Engine.Ledger.Data.LedgerBookDto The data entity.
return string

XamlOnDiskLedgerBookRepository() public method

public XamlOnDiskLedgerBookRepository ( LedgerBook>.[ mapper, [ importUtilities, [ ledgerBookFactory, [ readerWriterSelector ) : System
mapper LedgerBook>.[
importUtilities [
ledgerBookFactory [
readerWriterSelector [
return System