mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
increased azure repository network timeout to 30 minutes
This commit is contained in:
@@ -39,10 +39,13 @@ public class AzureRepository : ObjectRepository<AzureDownloadOptions, AzureUploa
|
||||
}
|
||||
|
||||
BlobServiceClient client;
|
||||
BlobClientOptions clientOptions = new BlobClientOptions();
|
||||
clientOptions.Retry.NetworkTimeout = TimeSpan.FromMinutes(30);
|
||||
|
||||
if (!String.IsNullOrEmpty(options.SasToken)) {
|
||||
client = new BlobServiceClient(new Uri(serviceUrl), new Azure.AzureSasCredential(options.SasToken));
|
||||
client = new BlobServiceClient(new Uri(serviceUrl), new AzureSasCredential(options.SasToken), clientOptions);
|
||||
} else {
|
||||
client = new BlobServiceClient(new Uri(serviceUrl), new StorageSharedKeyCredential(options.Account, options.Key));
|
||||
client = new BlobServiceClient(new Uri(serviceUrl), new StorageSharedKeyCredential(options.Account, options.Key), clientOptions);
|
||||
}
|
||||
return client.GetBlobContainerClient(options.Container);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user