Skip to content

Configure from code instead of config files #1892

Answered by raman-m
RobertHajbok asked this question in Q&A
Discussion options

You must be logged in to vote

@RobertHajbok Hi Robert!
Since version 20.0 we have new DI extension for injection of a FileConfiguration object being constructed manually from any storages and sources including databases.
Signature:

public static IConfigurationBuilder AddOcelot(this IConfigurationBuilder builder, FileConfiguration fileConfiguration) {}

The link is here
Commit: 4d245ec

Hope it helps!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;)
3 participants
Converted from issue

This discussion was converted from issue #1465 on January 06, 2024 16:37.