C# 클래스 EventSourced.Net.CommandValidator

상속: IDisposable
파일 보기 프로젝트 열기: danludwig/eventsourced.net 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddError void

공개 메소드들

메소드 설명
AddErrors ( CommandRejection[]>.IDictionary errors ) : void
AreEqual ( string value, string key, string otherValue ) : void
CommandValidator ( bool throwIfErrorsOnDispose = true ) : System
Dispose ( ) : void
EmailOrPhone ( string emailOrPhone, string key ) : void
HasError ( string key, CommandRejectionReason reason ) : bool
IsAvailable ( string value, string key, Func isAvailable ) : void
Length ( string value, string key, int minLength, int maxLength ) : void
LoggedOff ( IIdentity value, string key ) : void
NotEmpty ( System.Guid value, string key ) : void
NotEmpty ( string value, string key ) : void
NotNull ( object value, string key ) : void
NotPhoneNumber ( string possiblePhoneNumber, string key ) : void
OnlyCharacters ( string value, string key, string allowedCharacters, bool ignoreCase = true ) : void

비공개 메소드들

메소드 설명
AddError ( string key, object value, CommandRejectionReason reason, object data = null ) : void

메소드 상세

AddErrors() 공개 메소드

public AddErrors ( CommandRejection[]>.IDictionary errors ) : void
errors CommandRejection[]>.IDictionary
리턴 void

AreEqual() 공개 메소드

public AreEqual ( string value, string key, string otherValue ) : void
value string
key string
otherValue string
리턴 void

CommandValidator() 공개 메소드

public CommandValidator ( bool throwIfErrorsOnDispose = true ) : System
throwIfErrorsOnDispose bool
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EmailOrPhone() 공개 메소드

public EmailOrPhone ( string emailOrPhone, string key ) : void
emailOrPhone string
key string
리턴 void

HasError() 공개 메소드

public HasError ( string key, CommandRejectionReason reason ) : bool
key string
reason CommandRejectionReason
리턴 bool

IsAvailable() 공개 메소드

public IsAvailable ( string value, string key, Func isAvailable ) : void
value string
key string
isAvailable Func
리턴 void

Length() 공개 메소드

public Length ( string value, string key, int minLength, int maxLength ) : void
value string
key string
minLength int
maxLength int
리턴 void

LoggedOff() 공개 메소드

public LoggedOff ( IIdentity value, string key ) : void
value IIdentity
key string
리턴 void

NotEmpty() 공개 메소드

public NotEmpty ( System.Guid value, string key ) : void
value System.Guid
key string
리턴 void

NotEmpty() 공개 메소드

public NotEmpty ( string value, string key ) : void
value string
key string
리턴 void

NotNull() 공개 메소드

public NotNull ( object value, string key ) : void
value object
key string
리턴 void

NotPhoneNumber() 공개 메소드

public NotPhoneNumber ( string possiblePhoneNumber, string key ) : void
possiblePhoneNumber string
key string
리턴 void

OnlyCharacters() 공개 메소드

public OnlyCharacters ( string value, string key, string allowedCharacters, bool ignoreCase = true ) : void
value string
key string
allowedCharacters string
ignoreCase bool
리턴 void