You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My team publishes a custom configuration provider that connects to an external service to get config data, which is also updated throughout the lifetime of an application. We want partners to configure the logging, authentication, metrics, etc. when creating our configuration provider, but there is an ordering problem: When creating the config provider, there is no IServiceProvider to get ILogger, Meter, and certificates from.
What's the right way to provide services to a configuration provider?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My team publishes a custom configuration provider that connects to an external service to get config data, which is also updated throughout the lifetime of an application. We want partners to configure the logging, authentication, metrics, etc. when creating our configuration provider, but there is an ordering problem: When creating the config provider, there is no
IServiceProvider
to getILogger
,Meter
, and certificates from.What's the right way to provide services to a configuration provider?
Beta Was this translation helpful? Give feedback.
All reactions