C# 클래스 BudgetAnalyser.Engine.Services.TransactionRuleService

상속: ITransactionRuleService, ISupportsModelPersistence
파일 보기 프로젝트 열기: Benrnz/BudgetAnalyser 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void
CreateAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
CreateNewRule ( string bucketCode, string description, string references, string transactionTypeName, decimal amount, bool andMatching ) : MatchingRule
CreateNewSingleUseRule ( string bucketCode, string description, string references, string transactionTypeName, decimal amount, bool andMatching ) : SingleUseMatchingRule
IsRuleSimilar ( SimilarMatchedRule rule, DecimalCriteria amount, StringCriteria description, StringCriteria references, StringCriteria transactionTypeName ) : bool
LoadAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
Match ( IEnumerable transactions ) : bool
RemoveRule ( MatchingRule ruleToRemove ) : bool
SaveAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
SavePreview ( ) : void
TransactionRuleService ( [ ruleRepository, [ logger, [ matchmaker, [ ruleFactory, [ environmentFolders, [ monitorableDependencies ) : System
ValidateModel ( StringBuilder messages ) : bool

보호된 메소드들

메소드 설명
BuildDefaultFileName ( ) : Task

비공개 메소드들

메소드 설명
AddRule ( MatchingRule ruleToAdd ) : void
InitialiseTheRulesCollections ( List repoRules ) : void
IsSimilarRulePreconditions ( SimilarMatchedRule rule, DecimalCriteria amount, StringCriteria description, StringCriteria references, StringCriteria transactionType ) : void

메소드 상세

BuildDefaultFileName() 보호된 메소드

protected BuildDefaultFileName ( ) : Task
리턴 Task

Close() 공개 메소드

public Close ( ) : void
리턴 void

CreateAsync() 공개 메소드

public CreateAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
리턴 System.Threading.Tasks.Task

CreateNewRule() 공개 메소드

public CreateNewRule ( string bucketCode, string description, string references, string transactionTypeName, decimal amount, bool andMatching ) : MatchingRule
bucketCode string
description string
references string
transactionTypeName string
amount decimal
andMatching bool
리턴 MatchingRule

CreateNewSingleUseRule() 공개 메소드

public CreateNewSingleUseRule ( string bucketCode, string description, string references, string transactionTypeName, decimal amount, bool andMatching ) : SingleUseMatchingRule
bucketCode string
description string
references string
transactionTypeName string
amount decimal
andMatching bool
리턴 BudgetAnalyser.Engine.Matching.SingleUseMatchingRule

IsRuleSimilar() 공개 메소드

public IsRuleSimilar ( SimilarMatchedRule rule, DecimalCriteria amount, StringCriteria description, StringCriteria references, StringCriteria transactionTypeName ) : bool
rule BudgetAnalyser.Engine.Matching.SimilarMatchedRule
amount DecimalCriteria
description StringCriteria
references StringCriteria
transactionTypeName StringCriteria
리턴 bool

LoadAsync() 공개 메소드

public LoadAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
리턴 System.Threading.Tasks.Task

Match() 공개 메소드

public Match ( IEnumerable transactions ) : bool
transactions IEnumerable
리턴 bool

RemoveRule() 공개 메소드

public RemoveRule ( MatchingRule ruleToRemove ) : bool
ruleToRemove MatchingRule
리턴 bool

SaveAsync() 공개 메소드

public SaveAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
리턴 System.Threading.Tasks.Task

SavePreview() 공개 메소드

public SavePreview ( ) : void
리턴 void

TransactionRuleService() 공개 메소드

public TransactionRuleService ( [ ruleRepository, [ logger, [ matchmaker, [ ruleFactory, [ environmentFolders, [ monitorableDependencies ) : System
ruleRepository [
logger [
matchmaker [
ruleFactory [
environmentFolders [
monitorableDependencies [
리턴 System

ValidateModel() 공개 메소드

public ValidateModel ( StringBuilder messages ) : bool
messages StringBuilder
리턴 bool