コード例 #1
0
        public async Task <IList <int> > ActiveImplantsAsync(SsoToken token)
        {
            StaticMethods.CheckToken(token, CloneScopes.esi_clones_read_implants_v1);

            string url = StaticConnectionStrings.CheckTestingUrl(StaticConnectionStrings.ClonesV3ActiveImplants(token.CharacterId), _testing);

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

            return(JsonConvert.DeserializeObject <IList <int> >(esiRaw.Model));
        }