private void SetTimeout() { if (_setupContext.Timeout().HasValue) { _httpClient.Timeout = new TimeSpan(_setupContext.Timeout().Value.Ticks); } }