IdentityServer / IdentityServer3.EntityFramework

EntityFramework persistence layer for IdentityServer3
Apache License 2.0
68 stars 97 forks source link

Option to change the connectionstring on runtime #132

Closed hagailuger closed 7 years ago

hagailuger commented 7 years ago

Hi, When setting (in the startup) the ConnectionString for EntityFrameworkServiceOptions and then registering it in the IdentityServerServiceFactory- it stays this way forever. We are using AlwaysOn functionality on SQL, So we need a way to inform IdentityServer that the ConnectionStringwas changed

brockallen commented 7 years ago

If the options is in DI as a singleton, can't you just change the object's property?

hagailuger commented 7 years ago

Thanks! I wasn't aware it's an option. Testing and would let you know.

hagailuger commented 7 years ago

working. thanks!