Com.Ctrip.Framework.Apollo
携程Apollo客户端 与Microsoft.Extensions.Configuration集成请使用Com.Ctrip.Framework.Apollo.Configuration包 与System.Configuration.ConfigurationManager集成(.net 4.7.1及以后版本)请使用Com.Ctrip.Framework.Apollo.ConfigurationManager包 直接使用ApolloConfigurationManager请使用Com.Ctrip.Framework.Apollo.Configuration或者Com.Ctrip.Framework.Apollo.ConfigurationManager 2.4.0: 1. 添加apollo 1.6访问密钥 2.3.0: 1. 添加ICacheFileProvider支持自定义配置缓存方式(比如本地加密存储) 2.2.0: 1. 使用C# 8、添加nullable 2. 添加net40支持 3. 修复 #96 `ConfigService 挂了,重启配置不能同步问题` 2.1.0: 1. 修复ConfigServiceLocator不能刷新的bug 2.0.5: 1. LogManager.CreateLogger异常时返回结果 2.0.4: 1. 修复MultiConfig的ConfigChanged事件参数错误的问题 2. 当namespace数据异常时给出有意义的提示 2.0.3: 1. 修复使用net471的ConfigurationBuilder会造成死锁的问题 2. 修复当无本地缓存文件且远程加载配置失败时出现空引用异常 2.0.2: 1. 修复当配置发布后,非Properties格式的namespace可能不能获取到配置的问题 2. IConfig事件触发失败的BUG 2.0.1: 1. 修复并发时的一个NullReferenceException 2.0.0: 1. 添加json、xml等格式的namespace的支持,通过扩展名识别格式 2. 重新设计IConfig,通过扩展方法实现更多功能 3. 重构日志,直接通过委托而不需要实现接口
Install
dotnet add package Com.Ctrip.Framework.Apollo --version 2.4.0
Install-Package Com.Ctrip.Framework.Apollo -Version 2.4.0
<PackageReference Include="Com.Ctrip.Framework.Apollo" Version="2.4.0" />
Frameworks
Dependencies
Adoption guide
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.
Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.