Reply to thread

The scheduler is not a plugin, it is a native implementation in MediaPortal. I'm using it since Smirnoff say it is available and it is working great !

Here is my code using the scheduler :

[code]

TimeSpan next = main.NextTimeSpanToDownload();

Job job = new Job();

job.DoWork += new System.ComponentModel.DoWorkEventHandler(job_DoWork);

job.Name = "RefreshEPGfr";

job.Dispatch(next);


and then ...


private void job_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e) {

// do the job :)

}

[/code]

"main.NextTimeSpanToDownload()" is one method calculating the TimeSpan I need.


Top Bottom