Beispiel #1
0
        void ListDomainWebResponse(object sender, ResponseEventArgs args)
        {
            ISimpleDBResponse result = args.Response;

            SimpleDB.Client.OnSimpleDBResponse -= ListDomainWebResponse;

            if (result is AmazonSimpleDBException)
            {
                this.Dispatcher.BeginInvoke(() =>
                {
                    this.ListDomainMessage = "Error: " + ((AmazonSimpleDBException)result).Message;
                });
                return;
            }

            ListDomainsResponse response = (ListDomainsResponse)result;

            this.Dispatcher.BeginInvoke(() =>
            {
                DomainNameList.Clear();
                response.ListDomainsResult.DomainName.ForEach(b => DomainNameList.Add(b));
                this.ListDomainMessage = "No of Domains: " + response.ListDomainsResult.DomainName.Count;
            });
        }