Exemplo n.º 1
0
 /// <summary>
 /// Gets the count of work items for a given status code.
 /// </summary>
 /// <param name="status">The status.</param>
 public int GetWorkItemCountForStatus(JobWorkStatus status)
 {
     //JobWorkStatus.
     if (_statusCounts == null)
     {
         // Get from database
         WorkItemData dataUtil = GetWorker <WorkItemData>();
         int          count    = dataUtil.WorkItemGetCountByStatus(_id, status);
         return(count);
     }
     else
     {
         // Get count value from hash table
         return((int)_statusCounts[status.ToString()]);
     }
 }