public async Task <LookupsRemaining> GetNumberLookupsRemainingAsync(GD3.AuthHeader ahCD, GD3DVD.AuthHeader ahDVD) { var l = new LookupsRemaining(); try { var r = await SoapClientCD.GetNumberOfLookupsRemainingAsync(ahCD); l.CD = r.GetNumberOfLookupsRemainingResult; } catch (Exception e) { l.ErrorCD = e.Message; } try { var r = await SoapClientDVD.GetNumberOfLookupsRemainingAsync(ahDVD); l.DVD = r.GetNumberOfLookupsRemainingResult; } catch (Exception e) { l.ErrorDVD = e.Message; } return(l); }
public async void UpdateLookupsRemaining() { if (authCD == null && authDVD == null) { CurrentLookupsRemaining = null; } else { var l = await GetNumberLookupsRemainingAsync(authCD, authDVD); CurrentLookupsRemaining = l; } }