Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何检查.NET Core中是否存在配置节?
如何检查配置节是否存在于appsettings json在 NET Core 中 即使某个部分不存在 以下代码也将始终返回一个实例化实例 e g var section this Configuration GetSection
NET
json
ASPNETCore
appconfig
appSettings
使用 appSettings 配置自定义 Serilog 接收器
我创建了一个新的 Serilog 自定义接收器 并尝试通过 appSettings 配置它 自定义接收器名为 DiagnosticsBroadcaster 它的 LoggerSinkConfiguration 扩展是 public stat
c
appSettings
Serilog
自动部署后如何更改 appsettings.json 中的设置?
我有一个 ASP NET Core 应用程序 并在其上设置了 Github 自动部署 但由于它是一个开放的存储库 我显然不想上传我的正确配置文件 我想做的是在 github 自动部署后替换 appsettings json 中的一些字符串
aspnet
Azure
azurewebappservice
appSettings
将 appsetting.json 部分绑定到具有非公共属性或具有不匹配名称的属性的模型
net6 我工作正常 SomeSetting A value1 B value2 internal class MyClass lt NOTE the class is internal public string A get set lt
c
configuration
net60
appSettings
获取服务.net core中的appsettings.json值
I have appsettings json我想在其中声明文件路径的文件 Paths file C file pdf 我想在我的服务中访问这个值 我尝试这样做 public class ValueService IValueService
c
NET
ASPNETCore
NetCore
appSettings
自定义文件中的 AppSettings
我正在努力处理 NET 2 0 中的配置和设置类 如果以下内容包含在名为的文件中app config
c
configurationmanager
appSettings
Objective-C - 检测用户何时更改应用程序的通知设置
我需要always了解用户在推送通知设置上选择哪些选项 选项有 警报 声音和徽章 因此 当我的应用程序启动时 我调用 UIRemoteNotificationType types UIApplication sharedApplicatio
无法在 NLog 中设置我的连接字符串
NLog config 文件不设置连接字符串
c
ASPNETCore
NLog
appSettings
如何在运行时读取/写入 app.config 设置而不使用用户设置?
我正在寻找一种存储应用程序或机器级别设置的方法 可以使用以下命令在运行时写入这些设置 应用程序设置 http msdn microsoft com en us library k4s6c3a0 aspx 用户设置允许读 写 但应用程序设置不
c
NET
WPF
appconfig
appSettings
在卸载期间(卸载前)从自定义安装程序访问 AppSettings
我有一个 VS 解决方案 其结构如下 库项目 dll 使用 1 库项目的应用程序 我在应用程序 2 中定义了 app config 它定义了SaveLogsToDirectoryappSettings 中的路径 该值最终被库项目用来保存生成
c
NET
WinForms
setupdeployment
appSettings
Azure 中的 React 和 AppSettings
我的目标是从 Azure 应用程序设置中检索一些环境密钥 例如 api url 我的构建工厂如下 用于 tsx 的 webpack 到压缩的 js 使用 VSTS 构建和发布 在 Azure Web 应用程序上部署 Azure Web Ap
nodejs
ReactJS
Azure
azurewebappservice
appSettings
在不重新启动应用程序的情况下更改系统语言时,某些字符串不会被翻译
我遇到一个问题 如果我打开 Android 应用程序 然后进入系统设置更改语言 然后再次打开应用程序 则应用程序中的某些字符串将不会被翻译 除非应用程序强制退出并重新启动 知道为什么会发生这种情况吗 我没有android configCha
Android
string
Localization
appSettings
在 AppSettings.json 中配置 Serilog 接收器 MsSqlServer 的列选项
我正在尝试确定是否可以在中配置 serilog 接收器 mssqlserver 的列选项appsettings jsonASP Net Core 2 项目的文件 我在中创建并配置记录器Program cs file public stati
aspnetcore20
appSettings
Serilog
如何使用 IHttpClientFactory 刷新令牌
我使用 IHttpClientFactory 使用 Net Core 2 2 发送请求并从两个外部 API 接收 HTTP 响应 我正在寻找一个好的策略来使用已存储在 appsettings json 中的刷新令牌来获取新的访问令牌 当当前
c
ASPNETCore
dotnethttpclient
appSettings
httpclientfactory
我可以在 ASP.NET Core MVC 应用程序中将配置从 appsettings.json 移动到数据库吗?
我有这个应用程序使用appsettings json存储一些配置 如 API 地址 令牌 保存文件的路径等 我们没有 DevOps 因此对于我们在应用程序设置中所做的每项更改 我们需要要求基础架构团队将更改部署到生产中 也就是说 我在想是否
ASPNETMVC
database
configurationfiles
aspnetcore21
appSettings
(新格式)Visual Studio 项目中的可选 appsettings.local.json
我的应用程序使用 appsettings json 进行某些设置 如果 appsettings local json 存在 则应覆盖 appsettings json 中包含的任何设置 到目前为止 没有问题 但我使用 git 进行版本控制
c
git
VisualStudio2017
appSettings
localfiles
后台应用程序刷新检查,以编程方式启用和禁用整个设备以及 iOS 7 中的每个特定应用程序
我们可以从设置中手动检查整个设备以及 iOS 7 中每个特定应用程序的后台应用程序刷新 有什么方法可以在 iOS 7 中以编程方式完成此操作吗 简短的答案是否定的 您无法检查每个应用程序的后台刷新设置是由于应用程序沙箱造成的 应用程序可能会
ios
iphone
Objectivec
iPad
appSettings
AppSettings 的更改需要重新启动我的应用程序,我该如何避免?
我正在使用 C NET 2 0 Windows 应用程序 我正在使用 app config 作为我的应用程序设置 但 AppSettings 中的更改不会反映运行时 它需要重新启动应用程序 我怎样才能避免呢 这是我用来读取和写入应用程序设置
c
NET
configuration
appSettings
configurationmanager
加密 web.config 中的 appSettings
我正在开发一个网络应用程序 它需要将用户名和密码存储在 web Config 中 它还引用一些由网络应用程序本身而不是客户端请求的 URL 我知道 Net 框架不允许提供 web config 文件 但我仍然认为以纯文本形式保留此类信息是不
NET
security
Encryption
webapplications
appSettings
在 web.config 中存储值 - appSettings 或 configSection - 哪个更有效?
我正在编写一个可以使用几个不同主题的页面 并且我将在 web config 中存储有关每个主题的一些信息 创建一个新的sectionGroup并将所有内容存储在一起 还是将所有内容都放在appSettings中 是否更有效 配置部分解决方案
aspnet
webconfig
performance
appSettings
configsection
1
2
3
»