public IEnumerable <ValidationResult> Validate() { foreach (var result in _routingSlipConfigurator.Validate()) { yield return(result); } foreach (var result in _activityPipeConfigurator.Validate()) { yield return(result); } _configurationObservers.All(observer => { if (_compensateAddress == null) { observer.ExecuteActivityConfigured(this); } else { observer.ActivityConfigured(this, _compensateAddress); } return(true); }); }
public IEnumerable <ValidationResult> Validate() { foreach (var result in _routingSlipConfigurator.Validate()) { yield return(result); } foreach (var result in _activityPipeConfigurator.Validate()) { yield return(result); } _configurationObservers.All(observer => { observer.CompensateActivityConfigured(this); return(true); }); }
public IEnumerable <ValidationResult> Validate() { if (_filterFactory == null) { yield return(this.Failure("FilterFactory", "must not be null")); } foreach (var result in _pipeSpecifications.SelectMany(x => x.Validate())) { yield return(result); } foreach (var result in _routingSlipConfigurator.Validate()) { yield return(result); } }