public IEnumerable <ValidationResult> Validate()
            {
//                if (!typeof(TSaga).HasInterface<IConsumer<TMessage>>())
//                    yield return this.Failure("MessageType", $"is not consumed by {TypeMetadataCache<TSaga>.ShortName}");

                foreach (var validationResult in _specification.Validate())
                {
                    yield return(validationResult);
                }
            }
 public IEnumerable <ValidationResult> Validate()
 {
     return(_specification.Validate());
 }
Esempio n. 3
0
 public IEnumerable <ValidationResult> Validate()
 {
     return(_handlerConfigurator.Validate().Concat(((Configurator)_pipeConfigurator).Validate()));
 }