public IConsumePipe BuildConsumePipe()
        {
            var filter = new DynamicFilter <ConsumeContext, Guid>(new ConsumeContextConverterFactory(), GetRequestId);

            var builder = new PipeBuilder <ConsumeContext>();

            foreach (IPipeSpecification <ConsumeContext> specification in _consumeContextSpecifications)
            {
                specification.Apply(builder);
            }

            builder.AddFilter(filter);

            return(new ConsumePipe(filter, builder.Build()));
        }
Exemplo n.º 2
0
 void IPipeBuilder <ConsumeContext> .AddFilter(IFilter <ConsumeContext> filter)
 {
     _pipeBuilder.AddFilter(filter);
 }
Exemplo n.º 3
0
 void IPipeBuilder <SendContext> .AddFilter(IFilter <SendContext> filter)
 {
     _pipeBuilder.AddFilter(filter);
 }
Exemplo n.º 4
0
 void IPipeBuilder <PublishContext> .AddFilter(IFilter <PublishContext> filter)
 {
     _pipeBuilder.AddFilter(filter);
 }