Example #1
0
 public void Run()
 {
     if (listener != null)
     {
         if (status != null)
         {
             listener.OnReceiveProgress(entity.GetType(), entity.GetId(), status.total, status.cur);
         }
         else if (isEnd)
         {
             listener.OnReceiveEnd(entity);
         }
         else
         {
             listener.OnReceiveStart(entity.GetType(), entity.GetId());
         }
     }
     entity   = null;
     status   = null;
     listener = null;
 }