Esempio n. 1
0
        public void CheckSentEmails(CallContext resultContext)
        {
            ThreadCheckForWrongEmails threadCheckForWrongEmails = new ThreadCheckForWrongEmails(resultContext, DateTime.Now);

            Thread checkThread = new Thread(new ThreadStart(threadCheckForWrongEmails.StartCheck));

            checkThread.Name             = "ThreadCheckForWrongEmails";
            checkThread.CurrentCulture   = Thread.CurrentThread.CurrentCulture;
            checkThread.CurrentUICulture = Thread.CurrentThread.CurrentUICulture;
            checkThread.IsBackground     = true;
            checkThread.Start();
        }
Esempio n. 2
0
        public void CheckSentEmails(CallContext resultContext)
        {
            ThreadCheckForWrongEmails threadCheckForWrongEmails = new ThreadCheckForWrongEmails(resultContext, DateTime.Now);

            Thread checkThread = new Thread(new ThreadStart(threadCheckForWrongEmails.StartCheck));
            checkThread.Name = "ThreadCheckForWrongEmails";
            checkThread.CurrentCulture = Thread.CurrentThread.CurrentCulture;
            checkThread.CurrentUICulture = Thread.CurrentThread.CurrentUICulture;
            checkThread.IsBackground = true;
            checkThread.Start();
        }