The DataSourceKeyMap dictionary in the DataSourceResolver object is a static property! This is causing some real headaches.
We've implemented a custom login screen with a server selection option. After logging in our KeyResolver picks up our keys based on the server selection.
User logs out and the forms authentication login screen comes up as expected.
User logs in again, selecting a different server. However, because the DataSourceKeyMap is static (and apparently, not clearable... we tried EntityManager.DataSourceResolver.DataSourceKeyMap.Clear(), didn't work), the only way the keys are reset is by closing the browser (ie, shutting down the app).
Shouldn't there be a way to reset the keys?