public AsyncTaskRunner(uint retryCount, System.TimeSpan retryDelay, DoInBackground doInBackground, OnWorkCompleted onWorkCompleted, OnError onError)
 {
     this.status              = Status.Idle;
     this.doInBackground      = doInBackground;
     this.onWorkCompleted     = onWorkCompleted;
     this.onError             = onError;
     this.retryCountRemaining = retryCount;
     this.retryCount          = retryCount;
     this.retryDelay          = retryDelay;
 }
Beispiel #2
0
 // Run a single task only once.
 public AsyncTaskRunner(DoInBackground doInBackground, OnWorkCompleted onWorkCompleted, OnError onError)
 {
     this.status              = Status.Idle;
     this.doInBackground      = doInBackground;
     this.onWorkCompleted     = onWorkCompleted;
     this.onError             = onError;
     this.retryCountRemaining = 0;
     this.retryCount          = 1;
     this.retryDelay          = new System.TimeSpan(0, 0, 0);
 }