/// <summary> /// Request for API endpoints. Cached in memory for 3 days. /// </summary> /// <returns></returns> public async Task<Endpoint> GetEndpoint() { if (_endpoint == null || DateTime.UtcNow - _endpoint.lastCalculated > endpointExpiration) { _endpoint = await http.GetJsonAsync<Endpoint>("https://drive.amazonaws.com/drive/v1/account/endpoint").ConfigureAwait(false); } return _endpoint; }