gpt4 book ai didi

azure - 连接字符串 __ AzureWebJobsStorage 有什么用?

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

部署 azure 功能后,我偶然发现了配置设置ConnectionStrings__AzureWebJobsStorage。它似乎是自动部署的,并且与 AzureWebJobsStorage 具有完全相同的值(value)。我读过有关AzureWebJobsStorage的内容,但是ConnectionStrings__AzureWebJobsStorage有什么用?

最佳答案

我最近开始学习.Net core,发现配置设置中的__是一种表示JSON层次结构的方式。所以基本上 ConnectionStrings__AzureWebJobsStorage 看起来像:

"ConnectionString": {
"AzureWebJobsStorage": "some-connection-string-value"
}

这将允许您使用 GetConnectionString 读取连接字符串扩展方法。

本质上,它们都有相同的目的,即让您能够读取 AzureWebJobsStorage 连接字符串。区别在于您想要如何阅读它们。

关于azure - 连接字符串 __ AzureWebJobsStorage 有什么用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66563033/

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