public IEnumerable <Action <ISendContext> > Enumerate(ISendContext context) { IBusPublishContext <TMessage> outputContext; if (!context.TryGetContext(out outputContext)) { return(Enumerable.Empty <Action <ISendContext> >()); } return(_output.Enumerate(outputContext).Select(consumer => (Action <ISendContext>)(x => consumer(outputContext)))); }