private void RunRenewLeaseTask(object sender, ConsumeEventArgs e)
 {
     RenewLeaseTask[] tasks = (e.ConsumingItem as ChunkedConsumingItem<RenewLeaseTask>).Chunk;
     if (tasks != null && tasks.Length > 0)
     {
         foreach (var task in tasks)
         {
             RenewLeaseTaskRun(task);
         }
     }
 }
 private void RunPullMessageTask(object sender, ConsumeEventArgs e)
 {
     BasePullMessagesTask task = (e.ConsumingItem as SingleConsumingItem<BasePullMessagesTask>).Item;
     PullMessagesTaskRun(task);
 }