Set SharePoint Timer Job Progress

09/02/2016 08:41

use e. g. following code in Execute(...) method

  int i=0
  int loginsCount = logins.Count;
  foreach(... in logins)
  {
   ...
   i++;
   int progress = Convert.ToInt32(Math.Ceiling((double)i / (double)loginsCount * 100));
   this.UpdateProgress(progress);
  }