gpt4 book ai didi

c# - 将 LINQPAD 连接到 Azure 存储

转载 作者:行者123 更新时间:2023-12-03 04:39:36 25 4
gpt4 key购买 nike

我想将 LINQPAD 连接到我的开发存储 Azure。我知道我需要使用如下内容:

var accountName = "jamiekt"; 
var sharedKey = "smXblLn+==";
var uri = new System.Uri("http://table.core.windows.net/");

但是如何连接到本地存储模拟器?

最佳答案

将 LINQpad 连接到 Azure 存储的一个很好的示例如下:

http://geekswithblogs.net/IUnknown/archive/2010/03/10/linqpad-with-azure-table-storage.aspx

使用此处详细说明的开发存储帐户:

https://azure.microsoft.com/en-us/documentation/articles/storage-use-emulator/

特别是:

Account name: devstoreaccount1

Account key: Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==

URI 取决于您想要连接的内容:

The following format is used for addressing resources running in the storage emulator:

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>

For example, the following address might be used for accessing a blob in the storage emulator:

http://127.0.0.1:10000/myaccount/mycontainer/myblob.txt

关于c# - 将 LINQPAD 连接到 Azure 存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8366000/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com