Info
| Version: | 1.0.2 | 
| Author(s): | NFinal.Configration | 
| Last Update: | Thursday, November 19, 2020 | 
| .NET Fiddle: | Create the first Fiddle | 
| NuGet Url: | https://www.nuget.org/packages/NFinal.Configration | 
Install
Install-Package NFinal.Configration
                        dotnet add package NFinal.Configration
                        paket add NFinal.Configration
                        
                                NFinal.Configration Download (Unzip the "nupkg" after downloading)
                            
                        Dependencies
- NFinal.Common.Base(>= 1.0.3)
- Com.Ctrip.Framework.Apollo(>= 2.4.2)
- Com.Ctrip.Framework.Apollo.Configuration(>= 2.4.1)
- Microsoft.Data.Sqlite(>= 2.1.14)
- Microsoft.Extensions.Configuration.Json(>= 2.1.1)
- Microsoft.Extensions.Configuration.Xml(>= 2.1.1)
- MongoDB.Driver(>= 2.11.3)
- MySql.Data(>= 6.10.7)
- Newtonsoft.Json(>= 12.0.2)
- System.Data.SqlClient(>= 4.6.1)
- ZooKeeperNetEx(>= 3.4.12.1)
 
                
apollo.config
<configuration><Apollo><Namespaces name="0">application</Namespaces><Namespaces name="1">TEST1.Common</Namespaces><AppID>000001</AppID><Env>DEV</Env><MetaServer>http://192.168.31.164:8080</MetaServer><ConfigServer name="0">http://192.168.31.164:8080</ConfigServer></Apollo></configuration>
使用方式:
var username = NFinal.Common.ConfigHelper.GetConfigValue("username");.