mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-12 06:47:53 +02:00
Added option to immediately execute a task
This commit is contained in:
@ -34,6 +34,15 @@ public class TaskManager
|
||||
}
|
||||
}
|
||||
|
||||
public void ExecuteTaskNow(TrangaTask task)
|
||||
{
|
||||
Task t = new Task(() =>
|
||||
{
|
||||
TaskExecutor.Execute(this.connectors, task, this._chapterCollection);
|
||||
});
|
||||
t.Start();
|
||||
}
|
||||
|
||||
public void AddTask(TrangaTask.Task task, string connectorName, Publication? publication, TimeSpan reoccurrence,
|
||||
string language = "")
|
||||
{
|
||||
|
Reference in New Issue
Block a user