C# Class BudgetAnalyser.Engine.Matching.XamlOnDiskMatchingRuleRepository

Inheritance: IMatchingRuleRepository
ファイルを表示 Open project: Benrnz/BudgetAnalyser

Public Methods

Method Description
CreateNew ( ) : IEnumerable
CreateNewAndSaveAsync ( string storageKey ) : System.Threading.Tasks.Task
SaveAsync ( IEnumerable rules, string storageKey, bool isEncrypted ) : System.Threading.Tasks.Task
XamlOnDiskMatchingRuleRepository ( MatchingRule>.[ mapper, [ logger, [ readerWriterSelector ) : System

Protected Methods

Method Description
Deserialise ( string xaml ) : object
SaveToDiskAsync ( string fileName, IEnumerable dataEntities, bool isEncrypted ) : System.Threading.Tasks.Task
Serialise ( IEnumerable dataEntity ) : string

Private Methods

Method Description
LoadAsync ( string storageKey, bool isEncrypted ) : Task>
LoadFromDiskAsync ( string fileName, bool isEncrypted ) : Task>
Validate ( IList model ) : IList

Method Details

CreateNew() public method

public CreateNew ( ) : IEnumerable
return IEnumerable

CreateNewAndSaveAsync() public method

public CreateNewAndSaveAsync ( string storageKey ) : System.Threading.Tasks.Task
storageKey string
return System.Threading.Tasks.Task

Deserialise() protected method

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

SaveAsync() public method

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

SaveToDiskAsync() protected method

protected SaveToDiskAsync ( string fileName, IEnumerable dataEntities, bool isEncrypted ) : System.Threading.Tasks.Task
fileName string
dataEntities IEnumerable
isEncrypted bool
return System.Threading.Tasks.Task

Serialise() protected method

protected Serialise ( IEnumerable dataEntity ) : string
dataEntity IEnumerable
return string

XamlOnDiskMatchingRuleRepository() public method

public XamlOnDiskMatchingRuleRepository ( MatchingRule>.[ mapper, [ logger, [ readerWriterSelector ) : System
mapper MatchingRule>.[
logger [
readerWriterSelector [
return System