Esempio n. 1
0
        public void ThreadStop()
        {
            try
            {
                int _jobCounts = SchedulerManager.CurrentJobsList.Count;

                SchedulerManager.Stop();

                Response.Write(string.Format("Total: {0} Jobs Stopped", _jobCounts));
            }
            catch (Exception ex)
            {
                Response.Write("error:" + ex);
            }
        }
Esempio n. 2
0
        protected void btnStop_Click(object sender, EventArgs e)
        {
            try
            {
                int _jobCounts = SchedulerManager.CurrentJobsList.Count;

                SchedulerManager.Stop();

                lblThreadStatus.Text = string.Format("Total: {0} Jobs Stopped", _jobCounts);
                btnStart.Visible     = true;
                btnStop.Visible      = false;
            }
            catch (Exception ex)
            {
                lblThreadStatus.Text = ex.Message;
                btnStart.Visible     = true;
                btnStop.Visible      = true;
            }
        }
Esempio n. 3
0
 public bool Stop(HostControl hostControl)
 {
     SchedulerManager.Stop();
     return(true);
 }