public MessageBusBuilder ExpectRequestResponses(Action <RequestResponseBuilder> reqRespBuilder) { var item = new RequestResponseSettings(); reqRespBuilder(new RequestResponseBuilder(item)); _settings.RequestResponse = item; return(this); }
public MessageBusBuilder ExpectRequestResponses(Action <RequestResponseBuilder> reqRespBuilder) { if (reqRespBuilder == null) { throw new ArgumentNullException(nameof(reqRespBuilder)); } var item = new RequestResponseSettings(); reqRespBuilder(new RequestResponseBuilder(item)); Settings.RequestResponse = item; return(this); }
public RequestResponseBuilder(RequestResponseSettings settings) { Settings = settings; }