2

我正在尝试使用最新的模拟器(5.9)将 FileClient 用于 Azure 存储,但出现以下异常:No file endpoint configured.

这是我的代码:

    if (CloudStorageAccount.TryParse("UseDevelopmentStorage=true", out var account))
            _fileClient = account.CreateCloudFileClient();

任何帮助,将不胜感激。

4

1 回答 1

5

存储模拟器目前不支持文件服务和 SMB 协议服务端点,目前支持与存储模拟器一起使用的唯一端点如下:

Blob service: http://127.0.0.1:10000/<account-name>/<resource-path>
Queue service: http://127.0.0.1:10001/<account-name>/<resource-path>
Table service: http://127.0.0.1:10002/<account-name>/<resource-path>

更多信息可以在这里找到。

于 2019-02-15T00:22:46.297 回答