Ctrip Apollo (Apollo) configuration center quickly integrates in. NET Core Projects

Source: Internet
Author: User
Tags unique id

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.