apolloconfig / apollo.net

Apollo .Net Client
Apache License 2.0
481 stars 167 forks source link

支持多次调用AdddApollo()以添加namespace. #212

Closed czd890 closed 1 year ago

czd890 commented 1 year ago

支持多次调用AdddApollo()以添加namespace.

参考用法:

LibA
  AddLibANamespaces(this IConfigurationBuilder builder){
    builder.AddApollo().AddNamespace("LibA",ConfigFileFormat.Json)
}

LibB
  AddLibBNamespaces(this IConfigurationBuilder builder){
    builder.AddApollo().AddNamespace("LibB")
}

Main
IConfigurationBuilder builder;
builder
  .AddApollo(apolloOptions)
  .AddJsonFile(..)
  .AddLibANamespaces()
  .AddLibBNamespaces()
  .AddApollo()
  .AddNamespace("Main",ConfigFileFormat.Yml)
  .AddCommandLine(...)
github-actions[bot] commented 1 year ago

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


Calvin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request

czd890 commented 1 year ago

I have read the CLA Document and I hereby sign the CLA