Example #1
0
        public async Task <IList <int> > CorporationsAsync(int allianceId)
        {
            string url = StaticConnectionStrings.CheckTestingUrl(StaticConnectionStrings.AllianceV1Corporations(allianceId), _testing);

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

            IList <int> esiAllianceCorporations = JsonConvert.DeserializeObject <IList <int> >(esiRaw.Model);

            return(esiAllianceCorporations);
        }