Ejemplo n.º 1
0
        /// <summary>Confirmation action to be applied.</summary>
        /// <param name="value">True if the credentials should be persisted.</param>
        public void Confirm(bool value)
        {
            switch (CREDUI.ConfirmCredentials(this.Target, value))
            {
            case CREDUI.ReturnCodes.NO_ERROR:
                break;

            case CREDUI.ReturnCodes.ERROR_INVALID_PARAMETER:
                // for some reason, this is encountered when credentials are overwritten
                break;

            default:
                throw new ApplicationException("Credential confirmation failed.");
            }
        }