Exemplo n.º 1
0
        public async Task FleetUpdateAsync(SsoToken token, long fleetId, V1FleetUpdate updateModel)
        {
            StaticMethods.CheckToken(token, FleetScopes.esi_fleets_write_fleet_v1);

            string url = StaticConnectionStrings.CheckTestingUrl(StaticConnectionStrings.FleetsV1FleetUpdate(fleetId), _testing);

            EsiV1FleetUpdate model = _mapper.Map <EsiV1FleetUpdate>(updateModel);

            string objectModel = JsonConvert.SerializeObject(model);

            await PollyPolicies.WebExceptionRetryWithFallbackAsync.ExecuteAsync(async() => await _webClient.PutAsync(StaticMethods.CreateHeaders(token), url, objectModel));
        }
Exemplo n.º 2
0
 public async Task FleetUpdateAsync(SsoToken token, long fleetId, V1FleetUpdate updateModel)
 {
     await _internalLatestFleets.FleetUpdateAsync(token, fleetId, updateModel);
 }
Exemplo n.º 3
0
 public void FleetUpdate(SsoToken token, long fleetId, V1FleetUpdate updateModel)
 {
     _internalLatestFleets.FleetUpdate(token, fleetId, updateModel);
 }