C# Class EventSourced.Net.CommandValidator

Inheritance: IDisposable
Afficher le fichier Open project: danludwig/eventsourced.net Class Usage Examples

Private Properties

Свойство Type Description
AddError void

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
AddError ( string key, object value, CommandRejectionReason reason, object data = null ) : void

Method Details

AddErrors() public méthode

public AddErrors ( CommandRejection[]>.IDictionary errors ) : void
errors CommandRejection[]>.IDictionary
Résultat void

AreEqual() public méthode

public AreEqual ( string value, string key, string otherValue ) : void
value string
key string
otherValue string
Résultat void

CommandValidator() public méthode

public CommandValidator ( bool throwIfErrorsOnDispose = true ) : System
throwIfErrorsOnDispose bool
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EmailOrPhone() public méthode

public EmailOrPhone ( string emailOrPhone, string key ) : void
emailOrPhone string
key string
Résultat void

HasError() public méthode

public HasError ( string key, CommandRejectionReason reason ) : bool
key string
reason CommandRejectionReason
Résultat bool

IsAvailable() public méthode

public IsAvailable ( string value, string key, Func isAvailable ) : void
value string
key string
isAvailable Func
Résultat void

Length() public méthode

public Length ( string value, string key, int minLength, int maxLength ) : void
value string
key string
minLength int
maxLength int
Résultat void

LoggedOff() public méthode

public LoggedOff ( IIdentity value, string key ) : void
value IIdentity
key string
Résultat void

NotEmpty() public méthode

public NotEmpty ( System.Guid value, string key ) : void
value System.Guid
key string
Résultat void

NotEmpty() public méthode

public NotEmpty ( string value, string key ) : void
value string
key string
Résultat void

NotNull() public méthode

public NotNull ( object value, string key ) : void
value object
key string
Résultat void

NotPhoneNumber() public méthode

public NotPhoneNumber ( string possiblePhoneNumber, string key ) : void
possiblePhoneNumber string
key string
Résultat void

OnlyCharacters() public méthode

public OnlyCharacters ( string value, string key, string allowedCharacters, bool ignoreCase = true ) : void
value string
key string
allowedCharacters string
ignoreCase bool
Résultat void