2
Por que devo criar operações WebAPI assíncronas em vez de sincronizar?
Eu tenho a seguinte operação em uma API Web que criei: // GET api/<controller> [HttpGet] [Route("pharmacies/{pharmacyId}/page/{page}/{filter?}")] public CartTotalsDTO GetProductsWithHistory(Guid pharmacyId, int page, string filter = null ,[FromUri] bool refresh = false) { return delegateHelper.GetProductsWithHistory(CustomerContext.Current.GetContactById(pharmacyId), refresh); } A chamada para este serviço da web é feita por meio de uma chamada …