public ReturnFromPostInvocationConfiguration With(IPostInvocationConfiguration configuration) { var sequence = new TriggeredMessageSequence(); var inspector = new RouteInvocationTriggeringSequenceOfEvents(_route, configuration.CreateInvocationInspector(_route), sequence); var returnValueProxy = new NullOrInvocationReturnValueProducer(); _route.AddReturn(inspector, returnValueProxy); return new ReturnFromPostInvocationConfiguration(sequence, _service, returnValueProxy); }
public ReturnFromPostInvocationConfiguration With(IPostInvocationConfiguration configuration) { var sequence = new TriggeredMessageSequence(); var inspector = new RouteInvocationTriggeringSequenceOfEvents(_route, configuration.CreateInvocationInspector(_route), sequence); var returnValueProxy = new NullOrInvocationReturnValueProducer(); _route.AddReturn(inspector, returnValueProxy); return(new ReturnFromPostInvocationConfiguration(sequence, _service, returnValueProxy)); }