/// <summary> /// Checks if an e-mail address is okay /// </summary> /// <param name="address">address to check</param> /// <returns></returns> private bool IsEmailGood(string address) { if (!Functions.IsProperEmail(address)) { return(false); } if (mSettings.checkHotmail && !Hotmail.IsAvailable(address)) { return(false); } return(true); }
/// <summary> /// Search thread function /// This will search for accounts using three seperate threads /// </summary> private void Work() { /*Initialize our semapore with the settings that was passed*/ mSem = new Semaphore(mSettings.requestLimit, mSettings.requestLimit); Hotmail.GetSession(); /*Go through the steam accounts*/ for (int i = mSettings.startId; i < mSettings.endId; i++) { mSem.WaitOne(); QueryProfile(0, i); QueryProfile(1, i); } /*Done checking*/ Console.WriteLine("\n\nFinished"); mLog.FlushLog(true); }