예제 #1
0
        public IEnumerable <ValidationResult> Validate()
        {
            _observers.All(observer =>
            {
                observer.ConsumerConfigured(this);
                return(true);
            });

            return(_messageTypes.Values.SelectMany(x => x.Validate()));
        }
        public IPipe <ConsumerConsumeContext <TConsumer, TMessage> > Build(IFilter <ConsumerConsumeContext <TConsumer, TMessage> > consumeFilter)
        {
            _observers.All(observer =>
            {
                observer.ConsumerMessageConfigured(this);
                return(true);
            });

            _configurator.UseFilter(consumeFilter);

            return(_configurator.Build());
        }