【发布时间】:2017-08-07 13:26:11
【问题描述】:
我有以下代码:
private static CloudBlobClient GetClient()
{
var account = CloudStorageAccount.Parse(Settings.Deployment.AzureConnectionString);
return account.CreateCloudBlobClient();
}
当 blob 客户端不存在并抛出 No connection could be made because the target machine actively refused it 时,它需要的时间太长(我相信大约一分钟左右)。
如何将超时时间缩短到 5 秒左右?
【问题讨论】:
-
您能否描述一下“当 blob 客户端不存在时”的含义?
标签: c# asp.net azure timeout azure-blob-storage