public ICompletes <Response> RequestWith(Request request) { var completes = _configuration.KeepAlive ? Completes.RepeatableUsing <Response>(_configuration.Stage.Scheduler) : Completes.Using <Response>(_configuration.Stage.Scheduler); _consumer.RequestWith(request, completes); return(completes); }
public ICompletes <Response> RequestWith(Request request) { var completes = _configuration.KeepAlive ? Completes.RepeatableUsing <Response>(_configuration.Stage.Scheduler) : Completes.Using <Response>(_configuration.Stage.Scheduler); request.Headers.And(RequestHeader.Connection, _configuration.KeepAlive ? Header.ValueKeepAlive : Header.ValueClose); _consumer.RequestWith(request, completes); return(completes); }