public static TaskInformation Create(CancellationTokenSource token, String name, String description) { TaskInformation job = new TaskInformation(token, name, description); JobInfo.AddJob(job); return(job); }
public static WorkerThreadInfo Create(WorkerThread worker, String name, String description) { WorkerThreadInfo job = new WorkerThreadInfo(name, description); job.m_Worker = worker; JobInfo.AddJob(job); return(job); }