コード例 #1
0
        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);
            });
        }
コード例 #2
0
        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);
            });
        }