Support documentation for. NET core can be consulted in general. NET Client Usage guide: https://github.com/ctripcorp/apollo/wiki/.Net%E5%AE%A2%E6%88%B7%E7%AB%AF%E4% bd%bf%e7%94%a8%e6%8c%87%e5%8d%97
Login to the new app on Apollo and the related configuration items, you can refer to the following configuration:
Introducing Com.Ctrip.Framework.Apollo.Configuration dependencies on NuGet, the packages above NuGet
Configure the App.id set above on the project, and note that this is achieved by creating a new Appsettings.json file.
{
"Apollo": {
"AppId": "SampleApp",
"Metaserver": "http://111.230.101.173:8080"
}
}
AppId Unique ID used to identify the app identity
The Apollo client gets the configuration from different servers for different environments, Metaserver is the client gets the configured server configuration
Both of these are parameters that must be set, and optional parameters can be set.
Our. NET core configuration system is perfect, and Apollo's. NET core components also use this set of configuration systems.
Ctrip Apollo (Apollo) configuration center quickly integrates in. NET Core Projects