Exemple #1
0
        public async Task <V1DogmaAttribute> AttributeAsync(int attributeId)
        {
            string url = StaticConnectionStrings.CheckTestingUrl(StaticConnectionStrings.DogmaV1Attribute(attributeId), _testing);

            EsiModel esiRaw = await PollyPolicies.WebExceptionRetryWithFallbackAsync.ExecuteAsync(async() => await _webClient.GetAsync(StaticMethods.CreateHeaders(), url, SecondsToDT()));

            EsiV1DogmaAttribute esiModel = JsonConvert.DeserializeObject <EsiV1DogmaAttribute>(esiRaw.Model);

            return(_mapper.Map <EsiV1DogmaAttribute, V1DogmaAttribute>(esiModel));
        }