IUserManagerGenerateTemporaryUniqueId Method |
Namespace: VirtualRadar.Interface.Settings
The user creation UI has a bit of a chicken-and-egg situation, whereby the same screen that lets people create users also lets them use the new user's unique IDs in the settings. All new users tend to have the same default ID so any settings that refer to these new users are all referring to an ID that won't exist once the user is saved.
What the UI now does is it creates a new user object via the factory and then assigns it a temporary ID, the ID returned by this function. When the settings are saved it saves the users first and then replaces instances of the temporary ID with the ID assigned during the save.