public void Validate(IObjectValidator validator) { if (validator.IsValid) { RpcConsumers.Select(c => validator.AddChildValidator(c)); QueueProperties.Select(p => validator.AddChildValidator(p)); } }
public void Validate(IObjectValidator validator) { validator.Validate(ValueThree > 500, "ValueThreeValidationMessage", ValidationTypes.Error); this.EntityValidateInvoked = true; if (this.Child != null) { validator.AddChildValidator(this.Child); } if (this.Children != null) { Children.ForEach(c => validator.AddChildValidator(c)); } validator.Validate(ValueInfoOne == 1000, "ValueWarningOne", ValidationTypes.Info); }
public void Validate(IObjectValidator validator) { validator.Validate(this.NumConnectionRetries > 0, "Number Connection Retries must be Greater than 0.", ValidationTypes.Error); if (validator.IsValid) { Connections.Select(c => validator.AddChildValidator(c)); } }