예제 #1
0
        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);
        }
예제 #2
0
        public async void UpdateLookupsRemaining()
        {
            if (authCD == null && authDVD == null)
            {
                CurrentLookupsRemaining = null;
            }
            else
            {
                var l = await GetNumberLookupsRemainingAsync(authCD, authDVD);

                CurrentLookupsRemaining = l;
            }
        }