/// <summary> /// Enables the ability to handle replies inline - i.e. when Rebus is configured with this option, you can go /// <code> /// bus.Send(new SomeRequest{...}, (SomeReply reply) => // do something); /// </code> /// and more. /// </summary> public static RebusConfigurer EnableInlineReplyHandlers(this RebusConfigurer configurer) { configurer.AddDecoration(b => { b.ActivateHandlers = new CorrelationHandlerInjector(b.ActivateHandlers); }); return(configurer); }