public void PushCallBackParam(HandleCallbackParam callback)
 {
     if (!toStop)
     {
         _callBackQueue.Enqueue(callback);
         _queueHasDataEvent.Set();
     }
     else
     {
         _paramRepository.SaveCallbackParams(new List <HandleCallbackParam> {
             callback
         });
     }
 }
Exemplo n.º 2
0
 private void TriggerCallback(object sender, HandleCallbackParam callbackParam)
 {
     this._callbackTaskQueue.Push(callbackParam);
 }
Exemplo n.º 3
0
 public void Push(HandleCallbackParam callbackParam)
 {
     this.taskQueue.Enqueue(callbackParam);
     StartCallBack();
 }
 public static void pushCallBack(HandleCallbackParam callback)
 {
     getInstance().callBackQueue.Add(callback);
     logger.Debug(string.Format(">>>>>>>>>>> xxl-job, push callback request, logId:{0}", callback.logId));
 }