Beispiel #1
0
 public MyThread(int id, int workLeft, string priority, MyThreadTypes threadType)
 {
     _logger.Trace($"Creating Thread(id = {id}, startingWork = {workLeft}, priority = {priority}, threadType = {threadType.ToString()})");
     this.Id         = id;
     this.WorkLeft   = workLeft;
     this.Priority   = priority;
     this.Added      = DateTime.Now;
     this.ThreadType = threadType;
 }
Beispiel #2
0
 public MyThread(int id, int workLeft, string priority)
 {
     _logger.Trace($"Creating Thread(id = {id}, startingWork = {workLeft}, priority = {priority}, threadType = {DEF.ToString()})");
     Id              = id;
     WorkLeft        = workLeft;
     Priority        = priority;
     this.Added      = DateTime.Now;
     this.ThreadType = DEF;
 }