CredentialDialogUseApplicationInstanceCredentialCache Property |
Namespace: Ookii.Dialogs.Wpf
The application instance credential cache stores credentials in memory while an application is running. When the application exits, this cache is not persisted.
When the UseApplicationInstanceCredentialCache property is set to , credentials that are confirmed with ConfirmCredentials(Boolean) when the user checked the "save password" option will be stored in the application instance cache as well as the operating system credential store.
When ShowDialog is called, and credentials for the specified Target are already present in the application instance cache, the dialog will not be shown and the cached credentials are returned, even if ShowUIForSavedCredentials is .
The application instance credential cache allows you to prevent prompting the user again for the lifetime of the application if the "save password" checkbox was checked, but when the application is restarted you can prompt again (initializing the dialog with the saved credentials). To get this behaviour, the ShowUIForSavedCredentials property must be set to .