Exemple #1
0
        public async Task <V2DogmaEffect> EffectAsync(int effectId)
        {
            string url = StaticConnectionStrings.CheckTestingUrl(StaticConnectionStrings.DogmaV2Effect(effectId), _testing);

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

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

            return(_mapper.Map <EsiV2DogmaEffect, V2DogmaEffect>(esiModel));
        }