Exemple #1
0
        public static TaskInformation Create(CancellationTokenSource token, String name, String description)
        {
            TaskInformation job = new TaskInformation(token, name, description);

            JobInfo.AddJob(job);
            return(job);
        }
Exemple #2
0
        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);
        }