title: File Upload with Retry Count and Retry Delay -Best Approach in c#
body: <p>I have a case there i want upload files  with Retry count and Retry delay</p>
  
  <p>Currently i am doing upload like </p>
  
  <pre><code>Status UploadWithRetry(string sourceFile, string destinationFolder, int retryCount, int retryIntervalSeconds)
      {
  
          Status uploadStatus = new FileTransferStatus { FilePath = sourceFile };
  
          var fileName = Path.GetFileName(sourceFile);
  
          using (var fileStream = new FileStream(sourceFile, FileMode.Open))
          {
  
                  _client.UploadFile(fileStream, destinationFilePath, null);
                   Status.Success = true;
                  return uploadStatus;
              }
          }
  
      }
  </code></pre>
  
  <p>How can i modify it to include logic for Retry count and retry delay. Can anyone help on this.</p>