public IEnumerable <ValidationResult> Validate() { _observers.All(observer => { observer.SagaConfigured(this); return(true); }); return(_messageTypes.Values.SelectMany(x => x.Validate())); }
public IPipe <SagaConsumeContext <TSaga, TMessage> > Build(IFilter <SagaConsumeContext <TSaga, TMessage> > consumeFilter) { _observers.All(observer => { observer.SagaMessageConfigured(this); return(true); }); _configurator.UseFilter(consumeFilter); return(_configurator.Build()); }
public virtual IEnumerable <ValidationResult> Validate() { Observers.All(observer => { observer.SagaConfigured(this); return(true); }); foreach (var result in _messageTypes.Values.SelectMany(x => x.Validate())) { yield return(result); } foreach (var result in ValidateOptions()) { yield return(result); } }