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
Is it possible to provide an option for MongoDB Healthcheck to use a factory delegate for creating the connection string.
My use case is that I have template connection string in my appsettings and then, at aplication startup, I make a call to Vault to receive credentials and update the connection string template with them.
However, I cannot currently pass the updated connection string to the HealthCheck.
Adding IHealthChecksBuilder overload with Func<IServiceProvider, string> mongodbConnectionStringFactory will solve my problem, because it will always read an up-to-date connection string.
Hello!
Is it possible to provide an option for MongoDB Healthcheck to use a factory delegate for creating the connection string.
My use case is that I have template connection string in my appsettings and then, at aplication startup, I make a call to Vault to receive credentials and update the connection string template with them.
However, I cannot currently pass the updated connection string to the HealthCheck.
Adding IHealthChecksBuilder overload with
Func<IServiceProvider, string> mongodbConnectionStringFactory
will solve my problem, because it will always read an up-to-date connection string.This is already implemented for HealthChecks.SqlServer
The text was updated successfully, but these errors were encountered: