我正在 Visual Studio 中开发 Alexa Skills Kit 应用程序,并在 .NET Core 2.0 中创建了 AWS Lambda 项目。创建项目时,它会自动附带一个名为 aws-lambda-tools-defaults.json 的文件。此处的设置由 AWS Lambda 函数使用。
现在,我想存储我自己的应用程序设置和连接字符串以供应用程序使用。如何存储我的设置并将其写入代码的首选途径是什么?
我已经添加了名为 Microsoft.Extensions.Configuration.Json 的 NuGet 包。但我不确定我从这里做什么。
1) 我是否需要创建另一个 json 文件,或者我可以使用现有文件 aws-lambda-tools-defaults.json 吗?如果我确实需要创建一个新文件,它应该被命名为什么?
2)是否需要将构造函数添加到 Function.cs 文件中才能加载 json 文件?
3)我可以编写哪些代码来实际获取我的设置和连接字符串?
我在这里有点迷失,所以任何建议都会很有帮助!谢谢你!
json amazon-web-services visual-studio .net-core alexa-skills-kit
In Vue JS, I'm unable to watch for changes to an array when changes are made within an array element's (child's) computed Property.
I've boiled down the issue in a sample JSFiddle I wrote, so the example may not make sense logically but it does show my issue.
https://jsfiddle.net/trush44/9dvL0jrw/latest/
I have a parent component that holds an array of colors. Each color is rendered using a child component. The child component has a computed Property called 'IsSelected'. When the 'IsSelected' …