public void MessageConfigured <TMessage>(IConsumePipeConfigurator configurator) where TMessage : class { IFilter <ConsumeContext <TMessage> > filter = new ConductorMessageFilter <TMessage>(_endpoint.GetMessageEndpoint <TMessage>()); configurator.AddPipeSpecification(new FilterPipeSpecification <ConsumeContext <TMessage> >(filter)); }
public void MessageConfigured <TMessage>(IConsumePipeConfigurator configurator) where TMessage : class { // Do not setup discovery for routing slip endpoints, these should be managed separately if (typeof(TMessage) == typeof(RoutingSlip)) { return; } IFilter <ConsumeContext <TMessage> > filter = new ConductorMessageFilter <TMessage>(_endpoint.GetMessageEndpoint <TMessage>()); configurator.AddPipeSpecification(new FilterPipeSpecification <ConsumeContext <TMessage> >(filter)); }