Esempio n. 1
0
 /// <inheritdoc />
 public IViaCepResposta ObterResposta(string uri)
 => uri == null
         ? throw new ArgumentNullException(nameof(uri))
         : ViaCepResposta.Of(_cliente.GetAsync(uri).Result);
Esempio n. 2
0
 /// <inheritdoc />
 public Task <IViaCepResposta> ObterRespostaAsync(string uri)
 => uri == null
         ? throw new ArgumentNullException(nameof(uri))
         : Task.Run(async() => ViaCepResposta.Of(await _cliente.GetAsync(uri)));