public async Task <FooResponseData> GetFooAsync() { var json = await _jsonProvider.GetAsync("foo").ConfigureAwait(false); return(JsonConvert.DeserializeObject <FooResponseData>(json)); }