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())); }
void IPipeBuilder <ConsumeContext> .AddFilter(IFilter <ConsumeContext> filter) { _pipeBuilder.AddFilter(filter); }
void IPipeBuilder <SendContext> .AddFilter(IFilter <SendContext> filter) { _pipeBuilder.AddFilter(filter); }
void IPipeBuilder <PublishContext> .AddFilter(IFilter <PublishContext> filter) { _pipeBuilder.AddFilter(filter); }