Ejemplo n.º 1
0
 /// <summary>
 /// execute commplete
 /// </summary>
 /// <param name="success">success</param>
 public async Task ExecuteCompleteAsync(bool success)
 {
     await Task.Run(() =>
     {
         if (success)
         {
             SuccessCallback?.Invoke(CallbackRequest);
         }
         else
         {
             FailedCallback?.Invoke(CallbackRequest);
         }
     }).ConfigureAwait(false);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// execute commplete
 /// </summary>
 /// <param name="success">success</param>
 public void ExecuteComplete(bool success)
 {
     Task.Run(() =>
     {
         if (success)
         {
             SuccessCallback?.Invoke(CallbackRequest);
         }
         else
         {
             FailedCallback?.Invoke(CallbackRequest);
         }
     });
 }