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); }); }