Example #1
0
        private async void button1_Click(object sender, EventArgs e)
        {
            int maxEmails = System.Convert.ToInt32(this.numericUpDown1.Value);
            //AuthenticationResult lrt = await GraphHelper.GetAccessToken().ConfigureAwait(false);

            Hashtable senders = await GraphHelper.SignInAndGetDistinctSenders(maxEmails, this.textBox3.Text).ConfigureAwait(false);

            this.dataGridView1.DataSource = HBPChecker.verifyListOfSenders(senders);
        }
Example #2
0
        public static List <HBPResult> verifyListOfSenders(Hashtable senders)
        {
            List <HBPResult> lst = new List <HBPResult>();

            foreach (var item in senders.Keys)
            {
                lst.Add(HBPChecker.verifyEmail(item.ToString()));
                System.Threading.Thread.Sleep(1800);
            }
            return(lst);
        }