protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();

        // Run the tasks
        SchedulingExecutorParameters schedulingParams = new SchedulingExecutorParameters() { SiteName = SiteContext.CurrentSiteName, ServerName = WebFarmHelper.ServerName };
        ThreadStart threadStartObj = new ThreadStart(schedulingParams.ExecuteScheduledTasks);
        // Create synchronous thread
        CMSThread schedulerThread = new CMSThread(threadStartObj, true, ThreadModeEnum.Sync);
        schedulerThread.Start();
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();

        // Run the tasks
        SchedulingExecutorParameters schedulingParams = new SchedulingExecutorParameters()
        {
            SiteName = SiteContext.CurrentSiteName, ServerName = WebFarmHelper.ServerName
        };
        ThreadStart threadStartObj = new ThreadStart(schedulingParams.ExecuteScheduledTasks);
        // Create synchronous thread
        CMSThread schedulerThread = new CMSThread(threadStartObj, true, ThreadModeEnum.Sync);

        schedulerThread.Start();
    }