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
I'm trying to change storage at runtime. My intention is to remove a need of restarting application when user/password needs to be updated. I'm monitoring connection string in my appsettings.json file and whenever change occurs then IOptionsMonito.OnChange method is called, inside which I'm calling GlobalConfiguration.Configuration.UseMongoStorage(...). For testing purposes I was switching between databases (mongodb://localhost:27017/db --> mongodb://localhost:27017/db1) to see if that case would be also working. But even though hangfire collections are created in new DB it seem like hangfire server is still connecting to old DB as well as dashboard.
Hello,
I'm trying to change storage at runtime. My intention is to remove a need of restarting application when user/password needs to be updated. I'm monitoring connection string in my
appsettings.json
file and whenever change occurs thenIOptionsMonito.OnChange
method is called, inside which I'm callingGlobalConfiguration.Configuration.UseMongoStorage(...)
. For testing purposes I was switching between databases (mongodb://localhost:27017/db --> mongodb://localhost:27017/db1
) to see if that case would be also working. But even though hangfire collections are created in new DB it seem like hangfire server is still connecting to old DB as well as dashboard.Is it even possible to change storage at runtime?
Here is my setup:
The text was updated successfully, but these errors were encountered: