C# 클래스 MvvmValidation.ValidationScope

Provides a possibility to comibine multiple instances of ValidationHelper into one scope and execute the validation in one go with multiple validators. Useful when validating multiple view models that are not aware of each other and know only about the scope.
파일 보기 프로젝트 열기: pglazkov/MvvmValidation

공개 메소드들

메소드 설명
GetResult ( ) : ValidationResult

Gets the result of last validation (without executing the validation).

RegisterValidator ( [ validator ) : void

Registers a validator with this scope.

ValidateAllAsync ( ) : Task

Executes the validation of all registered validators and combines the result from all of them.

비공개 메소드들

메소드 설명
CombineResults ( IEnumerable results ) : ValidationResult
NotifyCombinedResultChanged ( ) : void
OnResultChanged ( ValidationResultChangedEventArgs e ) : void
OnValidatorResultChanged ( object sender, ValidationResultChangedEventArgs e ) : void

메소드 상세

GetResult() 공개 메소드

Gets the result of last validation (without executing the validation).
public GetResult ( ) : ValidationResult
리턴 ValidationResult

RegisterValidator() 공개 메소드

Registers a validator with this scope.
public RegisterValidator ( [ validator ) : void
validator [ Validator to register.
리턴 void

ValidateAllAsync() 공개 메소드

Executes the validation of all registered validators and combines the result from all of them.
public ValidateAllAsync ( ) : Task
리턴 Task