|
@@ -43,13 +43,9 @@ namespace MBIRevitBase.Services
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- var waitAndRetryPolicy = Policy.Handle<Exception>().WaitAndRetry(new[]
|
|
|
|
- {
|
|
|
|
- TimeSpan.FromSeconds(5),
|
|
|
|
- TimeSpan.FromSeconds(5),
|
|
|
|
- TimeSpan.FromSeconds(5),
|
|
|
|
- TimeSpan.FromSeconds(5)
|
|
|
|
- }, ReportError);
|
|
|
|
|
|
+
|
|
|
|
+ var waitAndRetryPolicy = Policy.Handle<Exception>().WaitAndRetry(4,
|
|
|
|
+ (i, t) => TimeSpan.FromSeconds(5 * 60), ReportError);
|
|
return waitAndRetryPolicy.Execute<BResult>(()=> UploadExportFileRetry<BResult>(result));
|
|
return waitAndRetryPolicy.Execute<BResult>(()=> UploadExportFileRetry<BResult>(result));
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
catch (Exception e)
|