Skip to content
Discussion options

You must be logged in to vote

Using builder.AddConfigServer() is preferred, as it takes care of most things. It internally calls the extension method on IConfigurationBuilder, which is exposed separately for compatibility and corner cases. About the order of calls, things have changed a bit since 3.0 (AddConfigServer used to call AddPlaceholderResolver internally, which was sometimes desired, but sometimes not; and possibly lead to replacements multiple times). This is described at https://steeltoe.io/docs/v4/welcome/whats-new.html#behavior-changes-2. So it depends on when you want replacements to happen.

Migrated from Slack, originally posted by @bart-vmware on Friday, November 21st

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bart-vmware
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant